I have a course with Guest access enabled, no enrolment key.
I want to hide if possible (or at least block) guest access to a resource (a directory) - while leaving access open to students.
I thought role overide would do this - but it doesn't.
Any answer?
Many thanks
Alick
Hi Alick,
Could you explain in detail how you tried to do this in override, and what version of Moodle you are using? These could help.
Cheers,
Yu
Could you explain in detail how you tried to do this in override, and what version of Moodle you are using? These could help.
Cheers,
Yu
Version is 1.7.1
I clicked on role tab in editing the resource.. then Override roles:
Selected Guest role:
One option available:
selected 'prohibit'
I clicked on role tab in editing the resource.. then Override roles:
Selected Guest role:
One option available:
Capability | Inherit | Allow | Prevent | Prohibit | Risks | ||||
---|---|---|---|---|---|---|---|---|---|
Core system | |||||||||
Access all groupsmoodle/site:accessallgroups | |
|
|
|
selected 'prohibit'
Hi Alick,
This is not the right capability to use. What you can do is set this directory resource "hidden", and inside course, go to assign roles, click on the override roles tab, select the student role, and set "view hidden activities" to true. Your students will be able to see this directory and access it but your guest will not.
Cheers,
Yu
This is not the right capability to use. What you can do is set this directory resource "hidden", and inside course, go to assign roles, click on the override roles tab, select the student role, and set "view hidden activities" to true. Your students will be able to see this directory and access it but your guest will not.
Cheers,
Yu
Thanks, Yu.
I did that - so it hides it from Guest.
But when I did the override in the course for student:
View hidden activitiesmoodle/course:viewhiddenactivities - set to allow
...it still hid it from student (when I went to switch roles).
Teacher & Administrator can see it ok, as expected.
Any ideas?
And I assume this solution (if I could get it to work) would then mean that all other activities in the course would be visible to students (which I might not want)....?
Alick
I did that - so it hides it from Guest.
But when I did the override in the course for student:
View hidden activitiesmoodle/course:viewhiddenactivities - set to allow
...it still hid it from student (when I went to switch roles).
Teacher & Administrator can see it ok, as expected.
Any ideas?
And I assume this solution (if I could get it to work) would then mean that all other activities in the course would be visible to students (which I might not want)....?
Alick
Hi Alick,
I just tried as a student, and I could see hidden resources as the override is in place. Can you physically log in as a student and verify?
And you are right, currently, you can't do that for individual activities but it's on our list.
Cheers,
Yu
I just tried as a student, and I could see hidden resources as the override is in place. Can you physically log in as a student and verify?
And you are right, currently, you can't do that for individual activities but it's on our list.
Cheers,
Yu
Logging in as a student via their profile doesn't seem to work properly - access to courses they are enrolled in is often blocked (but not consistently). Wondering if this is a bug or an issue with my course set-up?
Taken a while to get a real student to log in... (as I haven't got a student test account).
Yes, the override does work. Many thanks.
Alick
Taken a while to get a real student to log in... (as I haven't got a student test account).
Yes, the override does work. Many thanks.
Alick