prevent users from deleting admin group

This commit is contained in:
Jakob Sack 2011-04-18 11:53:38 +02:00
parent dd0eb9dd8d
commit a1ff99126a

View file

@ -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 ));