prevent users from deleting admin group
This commit is contained in:
parent
dd0eb9dd8d
commit
a1ff99126a
1 changed files with 5 additions and 0 deletions
|
@ -129,6 +129,11 @@ class OC_GROUP {
|
|||
* Deletes a group and removes it from the group_user-table
|
||||
*/
|
||||
public static function deleteGroup( $gid ){
|
||||
// Prevent users from deleting group admin
|
||||
if( $gid == "admin" ){
|
||||
return false;
|
||||
}
|
||||
|
||||
$run = true;
|
||||
OC_HOOK::emit( "OC_GROUP", "pre_deleteGroup", array( "run" => &$run, "gid" => $gid ));
|
||||
|
||||
|
|
Loading…
Reference in a new issue