Why system roles don't apply in course contexts?

Why system roles don't apply in course contexts?

by Thierry Deschamps -
Number of replies: 2

Hello,

I 'm used, in Moodle 1.9, to assign some roles other than administrator i the system context in order to grant to some people access to all the courses.

Now when I do it in Moodle 2 (2.2.2 and 2.3dev) it appears that they just don't apply in the course contexts.

Can somebody explain why?

Actually it works if the person also have a local role, but what's the point?

I'm a bit confused because I believed that the context inheritance was a cornerstone in Moodle...

Average of ratings: -
In reply to Thierry Deschamps

Re: Why system roles don't apply in course contexts?

by Stephen Ogden -

I think you may need to set the 'View courses without participation -/ course:view' capability for that role to 'allow'

In reply to Stephen Ogden

Re: Why system roles don't apply in course contexts?

by Thierry Deschamps -

Great, that helps!
I realise now that "enrolment" (in courses) and "role assignment" (in other contexts) are not equivalent in Moodle 2.

It seems that the block "People/Participants" shows only enrolments when "Users/Other users" as well as "This user's role assignments"  show only role assignments. But maybe not always ...

Anyway, thanks a lot for your help!