Hi!
The context is that we have a course for resits/redos of failed assessments. The courses are divided into categories by year (i.e: Category 2023 -> A1-203-BMF-RESIT-23). The course is divided into sections and each section is named as a month ( Jan, Feb,...). Usually, each lecturer is responsible for one section.
We created a block plugin which displays all of the activities inside the course, that are accessible (not restricted) by the user. The goal of it is that once the teachers completed the marking they need to find their activity, check (checkbox) it and click send a message. This will notify another team that marking was completed for the specific activity by the specific teacher.
So the reason we want to hide the activity from teachers is that there are too many activities inside one course and It might be confusing to find particularly their marked activity from the abovementioned block.
Attempted solutions: Created a new role based on the teacher role, with restrictions following restrictions:
- moodle/course:ignoreavailabilityrestrictions
- moodle/course:viewhiddenactivities
- qbank/customfields:viewhiddencustomfields
- moodle/course:viewhiddencourses
- moodle/course:viewhiddensections
- moodle/category:viewhiddencategories
Later we tried to create a role based on a non-editing teacher role with the above restrictions, but again the role was still able to see hidden activities.
Thanks,
Nazar
This is an interesting problem, we have a similar one where we have instructors that come into a course to grade a specific assignment or two yet we have to give them access to the entire course to do so.
I think you might have more success with a new role for this course, similar to that of an Instructor but different in that it is only able to edit topics based off the assigned grouping. Course would be set to Separate groups. We have a non-editing instructor role that when placed in a group and a Course set to separate groups they are only able to see those students.
Another option would be to seek out an institution that use multiple sections in the same course with different instructors. If the other instructors can only see students assigned to them, then that set-up should work in allowing you to restrict sections in a similar fashion.
Hope this helps,
Justin
I think you might have more success with a new role for this course, similar to that of an Instructor but different in that it is only able to edit topics based off the assigned grouping. Course would be set to Separate groups. We have a non-editing instructor role that when placed in a group and a Course set to separate groups they are only able to see those students.
Another option would be to seek out an institution that use multiple sections in the same course with different instructors. If the other instructors can only see students assigned to them, then that set-up should work in allowing you to restrict sections in a similar fashion.
Hope this helps,
Justin
There is a capability moodle/site:accessallgroups
Have you checked if the teacher role has that capability? Try removing it.
Have you checked if the teacher role has that capability? Try removing it.
Thank you Tim, that was one of the permissions I was considering playing with, do you know if that is a site wide permission or can be configured at the course level?
If it doesn't work, perhaps I will try this one https://moodle.org/plugins/filter_filtercodes around this working idea in the description: Conditionally display content depending on which cohort, group, role or Workplace tenant is looking at the content.
If it doesn't work, perhaps I will try this one https://moodle.org/plugins/filter_filtercodes around this working idea in the description: Conditionally display content depending on which cohort, group, role or Workplace tenant is looking at the content.
It can be configured at course level.