diff options
author | Morris Jobke <hey@morrisjobke.de> | 2014-11-13 22:39:40 +0100 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2014-11-13 22:39:40 +0100 |
commit | c0d63680ed09f0fb34c4b30bf1f54a2d7b92e78a (patch) | |
tree | ca7455afea88c68fca29d87620b135ac1f2e847b /lib/private/group | |
parent | dfcf2059e1e3c6973e6956c17f68de66e780c8a1 (diff) | |
parent | 8abe441d4ad345a94cd8170e8c691871ce648380 (diff) | |
download | nextcloud-server-c0d63680ed09f0fb34c4b30bf1f54a2d7b92e78a.tar.gz nextcloud-server-c0d63680ed09f0fb34c4b30bf1f54a2d7b92e78a.zip |
Merge pull request #11479 from owncloud/cleanup-group-admin-on-deleteGroup
cleanup group admin(s) on deleteGroup
Diffstat (limited to 'lib/private/group')
-rw-r--r-- | lib/private/group/database.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/private/group/database.php b/lib/private/group/database.php index 8aebefabd27..6bad55c8d5e 100644 --- a/lib/private/group/database.php +++ b/lib/private/group/database.php @@ -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; } |