Open emdalton opened 10 years ago
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 Adrian
Great! Thank you.
Venlig hilsen / Kind regards / Mit freundlichen Grüssen Flemming Bornemann Uddannelseschef
D: +4572241711 M: +4525284186
[http://mailbanner.ibc.dk/ibclogo_email.jpg]
IBC Kurser og Konsulenthus | Tvedvej 7 | DK-6000 Kolding | kurser.ibc.dkhttps://kurser.ibc.dk/ | konsulenthuset.ibc.dkhttps://konsulenthuset.ibc.dk/ |EAN: 5798000553965 |
Fra: Adrian Perez notifications@github.com Svar til: paulholden/moodle-local_cohortrole reply@reply.github.com Dato: onsdag den 17. februar 2021 kl. 12.01 Til: paulholden/moodle-local_cohortrole moodle-local_cohortrole@noreply.github.com Cc: Flemming Bornemann - FBO fbo@ibc.dk, Comment comment@noreply.github.com Emne: Re: [paulholden/moodle-local_cohortrole] Assign cohorts to roles at category level? (#1)
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 Adrian
— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fpaulholden%2Fmoodle-local_cohortrole%2Fissues%2F1%23issuecomment-780477976&data=04%7C01%7Cfbo%40ibc.dk%7Cda8d054f1f574cb29ad908d8d3335a04%7C862d95d591174f9899964bcad37c5371%7C0%7C0%7C637491564814940467%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=Rl%2BZ4i32mZlQDE4w1FMvid3S0%2B2%2BsYZ1Bjw5HxhX2l4%3D&reserved=0, or unsubscribehttps://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAM6XT3UHHSFQEZW6X3OMRWDS7OOXZANCNFSM4AQYQCRA&data=04%7C01%7Cfbo%40ibc.dk%7Cda8d054f1f574cb29ad908d8d3335a04%7C862d95d591174f9899964bcad37c5371%7C0%7C0%7C637491564814950464%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=F65%2F%2BeJCCLK1O0cBxIFGcqeCzg8Nuoiz%2F4q72SXF2Qc%3D&reserved=0.
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, Martin
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: I've reworked your solution for the display of the categories full path names (now it's cleaner - check it out!). And added it to the existing PR.
Thanks for your work!
Greets Adrian
We would also need the assigning roles at the category level. Is it possible now? And does the plugin run on Moodle 4?
Thank you
@Tanja-108
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?