Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Not a bug
-
Affects Version/s: 1.8
-
Fix Version/s: None
-
Component/s: Roles / Access
-
Labels:None
-
Environment:Tested on demo.moodle.org on March 11, 2007
-
Affected Branches:MOODLE_18_STABLE
Description
I wanted certain teachers to be able to see hidden courses in hidden categories. I tried two methods using roles. The two methods should have yielded equivalent results, but only one worked.
Method 1: modify the legacy role Teacher (this works)
login as admin
Site administration -> Users -> Permissions -> Define roles
edit the Teacher role
allow "See hidden categories"
allow "View hidden courses"
any Teacher who now logs in can see hidden categories and courses
Method 2: create a new role that inherits from Teacher (this does not work)
login as admin
create a new role CanSee inheriting from legacy role Teacher (editing)
allow CanSee to see hidden categories
allow CanSee to see hidden courses
in site context, assign user X to role CanSee
login as user X – cannot see hidden categories and courses
Issue Links
| This issue has a non-specific relationship to: | ||||
| MDL-7633 | Move legacy capabilities down the bottom of the list in a new section to help avoid confusion |
|
|
|
Hi John,
Just tested this, it is working for me, if your CanSee role is assigned at system context (not the site course context), then the users should be able to see hidden categories. Technically there is no way to inherit from a role, Moodle only allows you to duplicate it so there is no difference between creating a new one, and duplicating one if all the capability definitions are the same.