Hi!
I'm using Moodle 3.5.
I need to be able to assign some students to only individual resources in the course, so all other resources will be hidden for them.
E.g. I have a course with a couple of resources. User A should be able to see all the resources, as usual. User B should only be able to see a few resources which are explicitly allowed for him.
What I tried to do:
1. Assign the Student role only for the particular resource, and not to the whole course. Failed to do that, as the user was not available in the possible users selection until he was assigned to the course itself.
2. First assign the Guest role to that user in context of the whole course. Then I was able to assign the Student role for that user in context of the particular resource. Then I explicitly prohibited "mod/resource:view" for role Guest, and allowed it for the role Student. No luck, the needed resource is still not visited, and not even accessible by its url.
edit: If instead of "prohibit" I use "Prevent", that for some reason doesn't stop all resources from being viewable in the course.
Please help, I desperately need this kind of functionality!
Best regards,
Dmitri