Merge branch 'MDL-71999-master' of https://github.com/danielneis/moodle
This commit is contained in:
+13
-14
@@ -850,20 +850,6 @@ class enrol_imsenterprise_plugin extends enrol_plugin {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Called whenever anybody tries (from the normal interface) to remove a group
|
||||
* member which is registered as being created by this component. (Not called
|
||||
* when deleting an entire group or course at once.)
|
||||
* @param int $itemid Item ID that was stored in the group_members entry
|
||||
* @param int $groupid Group ID
|
||||
* @param int $userid User ID being removed from group
|
||||
* @return bool True if the remove is permitted, false to give an error
|
||||
*/
|
||||
public function enrol_imsenterprise_allow_group_member_remove($itemid, $groupid, $userid) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Get the default category id (often known as 'Miscellaneous'),
|
||||
* statically cached to avoid multiple DB lookups on big imports.
|
||||
@@ -992,3 +978,16 @@ class enrol_imsenterprise_plugin extends enrol_plugin {
|
||||
return has_capability('enrol/imsenterprise:config', $context);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Called whenever anybody tries (from the normal interface) to remove a group
|
||||
* member which is registered as being created by this component. (Not called
|
||||
* when deleting an entire group or course at once.)
|
||||
* @param int $itemid Item ID that was stored in the group_members entry
|
||||
* @param int $groupid Group ID
|
||||
* @param int $userid User ID being removed from group
|
||||
* @return bool True if the remove is permitted, false to give an error
|
||||
*/
|
||||
function enrol_imsenterprise_allow_group_member_remove($itemid, $groupid, $userid) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user