mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
cleanup group admin(s) on deleteGroup
This commit is contained in:
parent
063ca4f39b
commit
8abe441d4a
1 changed files with 4 additions and 0 deletions
|
|
@ -84,6 +84,10 @@ class OC_Group_Database extends OC_Group_Backend {
|
|||
$stmt = OC_DB::prepare( "DELETE FROM `*PREFIX*group_user` WHERE `gid` = ?" );
|
||||
$stmt->execute( array( $gid ));
|
||||
|
||||
// Delete the group-groupadmin relation
|
||||
$stmt = OC_DB::prepare( "DELETE FROM `*PREFIX*group_admin` WHERE `gid` = ?" );
|
||||
$stmt->execute( array( $gid ));
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue