Skip to content
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

Open
emdalton opened this issue Jun 20, 2014 · 10 comments
Open

Assign cohorts to roles at category level? #1

emdalton opened this issue Jun 20, 2014 · 10 comments

Comments

@emdalton
Copy link

Does this plugin allow a cohort to be assigned a role at the category level? If not, can this feature be added?

@paulholden
Copy link
Owner

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.

@Fbornemann
Copy link

We really need to be able to assigning roles at the category level. Any chance you could look into it?

@adpe
Copy link

adpe commented Feb 17, 2021

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

@Fbornemann
Copy link

Fbornemann commented Feb 17, 2021 via email

adpe pushed a commit to ffhs/moodle-local_cohortrole that referenced this issue Feb 18, 2021
adpe referenced this issue in ffhs/moodle-local_cohortrole Feb 18, 2021
adpe referenced this issue in ffhs/moodle-local_cohortrole Feb 19, 2021
adpe referenced this issue in ffhs/moodle-local_cohortrole Feb 19, 2021
adpe referenced this issue in ffhs/moodle-local_cohortrole Feb 19, 2021
adpe referenced this issue in ffhs/moodle-local_cohortrole Feb 19, 2021
adpe referenced this issue in ffhs/moodle-local_cohortrole Feb 19, 2021
@mserve
Copy link

mserve commented Apr 2, 2021

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

@adpe
Copy link

adpe commented Apr 13, 2021

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

@Tanja-108
Copy link

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

@uchida-nunet
Copy link

uchida-nunet commented Dec 20, 2022

@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.

@Richardvi
Copy link

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).

@helmo-nico
Copy link

We are also looking for this feature 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants