I was looking for solution for giving certain person the rights to do anything in the courses within certain course categories without displaying them in "My courses" list.
I have found "moodle:site/doanything" permission. I have created new role with this permission and assigned it to user on category level.
It seems to work great:
- In "My courses" list appears only those courses into which this user is enrolled or is a teacher etc.
- User don't have access to system wide parameters
- User can do anything in all courses within the category.
In documentation I have found :
"Note: This capability should only be assigned in the system context i.e. as a system role. Overrides for this capability should not be set. "
Does it mean there are any risks in using this permission on course category level instead of site level?
Regards
Adam Pawełczak