Skip to content

Commit

Permalink
MDL-71999 enrol: enrol_imsenterprise_allow_group_member_remove global
Browse files Browse the repository at this point in the history
  • Loading branch information
danielneis committed Jun 23, 2021
1 parent 10daae7 commit 3e62c6c
Showing 1 changed file with 13 additions and 14 deletions.
27 changes: 13 additions & 14 deletions enrol/imsenterprise/lib.php
Expand Up @@ -850,20 +850,6 @@ protected function load_course_mappings() {
}
}

/**
* 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.
Expand Down Expand Up @@ -992,3 +978,16 @@ public function can_hide_show_instance($instance) {
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;
}

0 comments on commit 3e62c6c

Please sign in to comment.