also deleting the memberships of a group

This commit is contained in:
Ralf Becker 2004-08-21 16:15:44 +00:00
parent ccb3e73f21
commit 46389291a7

View File

@ -780,6 +780,8 @@
if ((int) $account_id) if ((int) $account_id)
{ {
$this->db->query('DELETE FROM phpgw_acl WHERE acl_account='.(int)$account_id,__LINE__,__FILE__); $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 } //end of acl class