How do I hide a course from specific users?
I've created a role MYROLE via site admin -> users -> permissions -> define roles
- Role archetype : ARCHETYPE: Authenticated User
- Context types where this role may be assigned : User
Assigned user MYUSER to role MYROLE via site admin -> users -> user accounts -> Show profile for MYUSER -> Roles -> Assign roles relative to this user -> Choose MYROLE -> Add user MYUSER to role MYROLE
Then go to course MYCOURSE -> Course Administration -> Users -> Permissions -> Advanced role override -> choose role MYROLE -> Filter for 'moodle/course:view' and change to 'prohibit'
Log in as user MYUSER -> find courses -> search for course MYCOURSE and it displays in the list - although when I click on the link I get a message saying 'You can not enrol yourself in this course.'
I'd like the course to be invisible, including searches and the category list - any ideas?