Commit c0d63680 authored by Morris Jobke's avatar Morris Jobke
Browse files

Merge pull request #11479 from owncloud/cleanup-group-admin-on-deleteGroup

cleanup group admin(s) on deleteGroup
parents dfcf2059 8abe441d
......@@ -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;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment