Restrict a student to his category

Restrict a student to his category

by amit gupta -
Number of replies: 11

Hi All,

After doing a lot of work-around I couldn't find how to restrict a student to his category. 

I have created the following scene:-

Category A -> courses a1, a2, etc

Category B -> courses b1, b2, etc

....

similarly continued.

Most important I want that students in category A courses cannot see the category B courses i.e i want to restrict the students to their particular category.

Any help would be appreciable.

Amit

Average of ratings: -
In reply to amit gupta

Re: Restrict a student to his category

by Sakshi Goel -

Hi Amit

If you enrol student only in one category than he would not able to see courses in other categories. Moreover disable the guest access to your courses.

In reply to Sakshi Goel

Re: Restrict a student to his category

by amit gupta -

Hi Sakshi,

Thnx for the reply. I know how to enrol students in courses but how should i enrol student in a category.

 

Regards,

Amit

In reply to Sakshi Goel

Re: Restrict a student to his category

by amit gupta -

Hi Sakshi,

Thnx for the reply. I know how to enrol students in courses but how should i enrol student in a category.

 

Regards,

Amit

In reply to Sakshi Goel

Re: Restrict a student to his category

by amit gupta -

Hi Sakshi,

Thnx for the reply. I know how to enrol students in courses but how should i enrol student in a category.

 

Regards,

Amit

In reply to amit gupta

Re: Restrict a student to his category

by Floyd Saner -

Amit,

Which version of Moodle are you using?  If it is a recent version, I would not enroll students in a category - use cohorts instead.

http://docs.moodle.org/22/en/Cohorts

-Floyd

In reply to Floyd Saner

Re: Restrict a student to his category

by amit gupta -

Floyd,

I'm using moodle 2.5.0

 

In reply to amit gupta

Re: Restrict a student to his category

by Floyd Saner -

Moodle 2.5 - look at the documentation link for cohorts.  That is the preferred way.

If you really want to go back to the old way, you need to enable the Student role to be assigned in Categories.  

  1. Go to Site administration...Users...Permissions...Define roles.
  2. Click the Student role. 
  3. Click 'Edit'
  4. Scroll down to "Context types where this role may be assigned.
  5. Select 'Category'
  6. Save changes.

You should now be able to assign students to a Category.

In reply to Floyd Saner

Re: Restrict a student to his category

by amit gupta -

Hey Floyd,

Thnx for the response.

It's really appreciated. 

One more doubt, if we add teachers also in same way then would it be applicable for teachers also?? I mean if i add teacher in a cohort, then he'll also not be able to see other categories....right???

Also I've allowed teachers to add new courses, hope this will hide other categories from the teacher while creating courses also???

Regards,

Amit

 

In reply to amit gupta

Re: Restrict a student to his category

by Floyd Saner -

Amit,

It should also work for teachers.  Give it a try.

Floyd

In reply to Floyd Saner

Re: Restrict a student to his category

by amit gupta -

Hi Floyd,

Thnx once again !!!

I've tried all the things. Some things are working and some not.

I wanted to ask that i have allowed a teacher to create courses, and while creating courses he is able to see all the categories (which is not appropriate for him/her as per my requirement). So my question is how do i remove in-appropriate categories for teacher while he/she creates a new course i.e list only those categories in which he/she is assigned the role of teacher.

I am using moodle 2.5.2+.

Regards,

Amit