Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Won't Fix
-
Affects Version/s: 1.9.1
-
Fix Version/s: None
-
Component/s: Roles / Access
-
Labels:None
-
Environment:linux
-
Database:MySQL
-
Affected Branches:MOODLE_19_STABLE
Description
Unable to add users that don't have managemetacourse capability.
Well, I created modified the code to only allow people that has the moodle:course/request capability in the sync metacourse and in the admin/role/assign.php file to allow normal users to be added to metacourse.
So scenario 2 works well now. Unless I got something wrong. It is not needed for a user to be able to manage metacourses. We only want them to be added inside the course or in the parent course.
I tested my patch and it seems to work. I guess other thing should be modified as well. But it works.
Anyone?
Can someone tell me if the patch I provided is Okay. If there is something wrong. Tell me, I'll do the necessary change.
Is there a reason why only the people with the managemetacourse capability can join a metacourse. While other users with normal roles can't.
Is there a way to achieve the scenario2 without giving the managemetacourse capability.
Unless the above is impossible without giving the manage metacourse capability. I'd like to know if there is any risk with the patch I made.
Thank you,
Loïc Faure-Lacroix