Here's a puzzle: Using Moodle 1.9.7, I'm trying to override the moodle/user:viewdetails ("View profiles") capability for students at the course level, but it seems to have no effect. Other role overrides work OK at this level.
Procedure as follows:
Assign Roles > Override permissions
Set moodle/user:viewdetails to Prohibit
Repeat for Guest and Authenticated user roles, just to be sure
Now log on as a student - profiles still visible!
I think I know the answer to my own question - profiles are site-level entities, so presumably my setting of these permissions at course level has no effect. But why is the capability settable at course level in that case?
Any ideas gratefully received!