Description

We have a series of nested hidden categories and would like to give some teachers and possibly some students access to view them. Created a role called CanSeeHiddenCats that only has the moodle/category:visibility capability assigned.

Then, went to the category and assigned that role to the selected user, that user gets an error stating 'That is not currently available'.

Looking at /course/category.php, I see two sections of code that seem to control this:

Attachments

Activity

We would rather see the ability of allowing a user to see a hidden category at the root level and only those categories they have been given a role that allows them to see it. That way you can have a mix of hidden and visible categories at the root level and selectively assign users to see only those hidden categories they should have access to.

Ron Meske
added a comment - 10/Sep/08 11:55 PM We would rather see the ability of allowing a user to see a hidden category at the root level and only those categories they have been given a role that allows them to see it. That way you can have a mix of hidden and visible categories at the root level and selectively assign users to see only those hidden categories they should have access to.

Please see this forum post (http://moodle.org/mod/forum/discuss.php?d=105409#p465110) for a solution, that is currently being tested, that allows hidden categories to be selectively assigned to users. This allows a user assigned to a hidden category to only see that hidden category and none of the other hidden categories.

This does not limit the users seen by a "teacher" when given the capability to Assign Roles. This type of change requires the ability of limiting users to some subset of all users based on a user profile field.

Ron Meske
added a comment - 16/Sep/08 9:46 PM Please see this forum post ( http://moodle.org/mod/forum/discuss.php?d=105409#p465110 ) for a solution, that is currently being tested, that allows hidden categories to be selectively assigned to users. This allows a user assigned to a hidden category to only see that hidden category and none of the other hidden categories.
This does not limit the users seen by a "teacher" when given the capability to Assign Roles. This type of change requires the ability of limiting users to some subset of all users based on a user profile field.