Restricting user view to only one course

Restricting user view to only one course

by Nathalie Thorne -
Number of replies: 4

Hi guys,

I've had a search of the forum and haven't been able to find anything that solves my problem at all.

We are trying to get an external party to check one of the courses on our site. We only want that party to be able to see this one particular course, not anything else. I thought great, I can set up a role that prevents them from viewing any of the courses on the site (set all permissions in the role to prevent) and then override that role in the particular course.

I've set up this role, but when i went to check it with my test account, I am able to see other courses- which I thought i'd prevented!

I then tried making this new role higher in the list than "authenticated user" which hasn't changed anything.

Does anyone have any tips? I'm so confused as to why it isn't working.

Average of ratings: -
In reply to Nathalie Thorne

Re: Restricting user view to only one course

by François Lizotte -
Picture of Particularly helpful Moodlers

Nathalie,

What do you mean exactly by viewing/seeing a course? In your test account, can you enter in all the courses? If so, what is the role of your test user account in a course context?

Make sure it doesn't have any system role.

François

In reply to François Lizotte

Re: Restricting user view to only one course

by Nathalie Thorne -

Hi Francois,

We have Course A, which we want the test account to be able to see- enter, look at the lesson, see the assessment etc. We want the test account to be restricted from seeing all the other courses available, but they can enter the other courses as a guest.

What I had done was create a role which prevented all permissions, and assigned this to the test account in the system context. I assumed this would disable the learner from seeing any courses.

I then went to Course A and assigned them as a learner in the course context, assuming that this would allow them to see this course only.

All accounts are assigned "authenticated user" by default according to the user policies, which has the permissions to view open courses. However, I thought that assigning the restricted role in system context would override this.

Hope that's clarified things?

In reply to Nathalie Thorne

Re: Restricting user view to only one course

by François Lizotte -
Picture of Particularly helpful Moodlers

Ok, but what is the enrolment policy in each of your courses? Are they enrollable? If so, any user can enter a course if it is not protected by a key.

enrolment

By the way, I'm not a Moodle specialist yet. But I manage Moodle for about 30 colleges and we are using version 1.9.

François

In reply to François Lizotte

Re: Restricting user view to only one course

by Haider Ali -

I hope thats perfect that each course must have an enrolment key so that the course could be accessed by the right person