Skip to content
Snippets Groups Projects
Commit a1ff9912 authored by Jakob Sack's avatar Jakob Sack
Browse files

prevent users from deleting admin group

parent dd0eb9dd
No related branches found
No related tags found
No related merge requests found
......@@ -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 ));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment