From bb4c9f46d4608960cef7e96bcc795a02189aac69 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Sat, 21 Aug 2004 16:17:04 +0000 Subject: [PATCH] also deleting the memberships of a group --- phpgwapi/inc/class.acl.inc.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/phpgwapi/inc/class.acl.inc.php b/phpgwapi/inc/class.acl.inc.php index fe28e7ae6e..6ce042b3d4 100644 --- a/phpgwapi/inc/class.acl.inc.php +++ b/phpgwapi/inc/class.acl.inc.php @@ -780,6 +780,8 @@ if ((int) $account_id) { $this->db->query('DELETE FROM phpgw_acl WHERE acl_account='.(int)$account_id,__LINE__,__FILE__); + // delete all memberships in account_id (if it is a group) + $this->db->query("DELETE FROM phpgw_acl WHERE acl_appname='phpgw_group' AND acl_location='".(int)$account_id."'",__LINE__,__FILE__); } } } //end of acl class