-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Assign cohorts to roles at category level? #1
Comments
Hi @emdalton - the plugin doesn't currently support assigning roles at the category level (only system roles), but is something that I can look at in the future. |
We really need to be able to assigning roles at the category level. Any chance you could look into it? |
Hi @paulholden I'll assign me this issue, as we had the same discussion at our institution. I've already some working code and I'm testing it out locally. The PR will come soon. Greets |
Will help to solve paulholden#1
One comment: be aware that this rises the required Moodle Version to 3.6 as the feature (correctly) uses core_course_category BTW: I just started to do develop the exactly same today for our local Moodle installation when I noticed that there is an ongoing issue on this. Will start to test the ffhs/moodle-local_cohortrole feature/sync branch the next days. BR, |
Thanks @mserve I've just pushed the missing part to handle the deletion of course categories. All the rest you've done is not a must for #8. Therefore, I've left it out. The handling of moving course categories is fine, and nothing must be implemented. As I saw you've made some UI changes. Maybe some of them I'll pick up and also add to the existing PR. Update: Thanks for your work! Greets |
We would also need the assigning roles at the category level. Is it possible now? Thank you |
I know this is a very late reply, but I am writing for future reference. In our organization, we are using this plugin in Moodle 4 to manage category level role assignments. If you get the error "Can't find data record in database table course_categories." with @adpe's code, @mserve's code will solve it. Thanks. |
We are also looking for assigning roles at category level. Preferably, we want to give cohort X guest access to all courses in category X. Currently this seems impossible to do in Moodle (we are on version 4.2). |
We are also looking for this feature 👍 |
Does this plugin allow a cohort to be assigned a role at the category level? If not, can this feature be added?
The text was updated successfully, but these errors were encountered: