In the course there are zero overrides on permissions and I also reset to the defaults the permission of the system wide Teacher role.
How do I grant her the privileges to add resources to a single course in the system?
I am running Moodle 1.9.6+ (Build: 20091028)
Do you mean the teacher cannot see the Turn Editing On button?
Or do you mean she can see and click on Turn Editing on but the drop down boxes for add a resource and add an activity do not appear?
Are you using categories? Perhaps her permissions are affected at the category level?
You didn't, by any chance, make her a non-editing teacher in this classroom?
No, we are not using categories.
Also, I have verified the condition by both logging in as the teacher and assigning the teacher role to one of my otherwise non-privileged accounts.
I have attached a screen shot of what she sees.
Yes, it occurs on all computers/browsers/sites.
Yes, we are using categories. I answered no before. I don't see how you can change role permissions on a category level.
You can go to https://secure.spacegrant.org/vasts/ and register with the site. Once you do this I will set you up as a teacher in our test course.
Thanks for the help.
About categories, when in a category, "Assign roles" appears below the Turn editing on button. You can then go into Override permissions. There is a permission called "Manage activities," but I can't find anything like "Manage resources."
In a test classroom, I changed the teacher's permission for manage activities to prohibit. The teacher then still has a Turn editing on button, but the only "editing" allowed is of topic sections. I can't edit anything in a section, and I do not have the drop down boxes for adding resources or activities.
So, I'd be tempted to look at the category permissions. 1.9.6 may behave differently.
I got nowhere with groups, groupings. Sorry.
I also have the same problem using moodle 1.9.8. I wrote a simple php page that parse a text file and bulk create a tree of categories and courses using the course lib functions and acting as administrator. Everything works well except for that issue. The Ajax is disabled and I'm not using groups/groupings and the problem appears both in normal or meta courses.
I tried to debug this behaviour by comparing three database dumps referred to the following cases:
- before any course creation
- after the scripted creation
- after removing the automatically created courses and categories and re-creating them by hand (in this case everything works right!)
but I noticed no relevant differences (BTW, manually parsing out an impressive amount of rows...)
I really need to solve this problem in a very few days!
Attached: the php creation script (sorry, variables names and comments are in italian language...). It lies on the admin directory of the moodle wwwroot.
thank you in advance
After some trial I found what the problem was rised by: I forgot to explicitly set the allowed modules for the course once forced the restriction so that nobody but the administrator had access to resources or activities.
I found out that I had the teacher listed as a TEACHER and COURSE CREATOR. I eliminated the TEACHER role and she had her dropdowns again!~