Roles and permissions

 
 
Picture of Neil Simon
Role Capability to Override Conditional Access
 

I have enabled Conditional Access in the Advanced Features section and it is very useful. Unfortunately, I now need to create a class of user, who basically have the same access as a student, but for whom these conditionals don't apply.

Can anyone suggest which of the Role Capabilities I need to set for this role to be able to bypass the conditional?

 
Average of ratings: -
Tim at Lone Pine Koala Sanctuary
Re: Role Capability to Override Conditional Access
Group DevelopersGroup Documentation writersGroup Particularly helpful Moodlers

It uses the viewhiddenactivities capability.

 
Average of ratings: -
Picture of Neil Simon
Re: Role Capability to Override Conditional Access
 

Thanks for the info. I've tried both of the moodle/course:viewhiddenactivities and moodle/course:viewhiddensections. Unfortunately, I seem to need to have both set to allow to give the user access to the conditional areas and activities.

 

By doing this, they also end up with access to all of the hidden resources in the course too (which is not desirable, but understandable from what I know of these permissions). I suspect that there is no way to override only the conditional access code without a code change. Can anyone give me a pointer on coding up new role capabilities? I'm quite happy coding PHP and Moodle.

 
Average of ratings: -
Picture of Neil Simon
Re: Role Capability to Override Conditional Access
 

I've added an improvement request for this:

https://tracker.moodle.org/browse/MDL-37765

 
Average of ratings: -