I've added a lot of resources on my Moodle installation. I would like that only registered user could see it.
In other words: if one (not yet logged in) tries to copy&paste a link like that (www.mysite.com/mod/resource/view.php?id=87), he should see a message like "I'm sorry, you can't access this resource".
I tried many times but I can't sort out this simple problem!
Thank you in advance for helping me!
I don't believe that there isn't a way to do the same with the resources!!!
What does it currently do?
It should realistically take you to the login page if you have the resourse set as hidden (and obviously give only registered users permission/access).
I don't want to set the resource as hidden, I just want limit the access to the resource so that only registered users can view it.
I don't think it's a so strange request: if I write a html page on Moodle, I should have the right to restrict the access to it only to registered users.
Anyone have my problem?
You are not alone. With prior versions of moodle I have changed the code in order to get a more specific access limitation. See:
However, I did not upgrade since 1.5.3.
We have a similar requirement on our site and we have solved it by setting the course to prevent guest access. It's on the Course Settings under Admin. That will set it so that all resources on that course can only be seen by a logged on user.
I'm not aware of any settings at resource level, so if you had some resources publically accessible and some not, then that might be 2 separate courses.
Hope this helps - Sylvia