diff --git a/admin/inc/hook_deleteaccount.inc.php b/admin/inc/hook_deleteaccount.inc.php index f4e124c85b..7da4fe51ed 100755 --- a/admin/inc/hook_deleteaccount.inc.php +++ b/admin/inc/hook_deleteaccount.inc.php @@ -14,5 +14,8 @@ if($GLOBALS['account_id']) { $GLOBALS['phpgw']->accounts->delete($GLOBALS['account_id']); + $GLOBALS['phpgw']->db->lock(Array('phpgw_acl')); + $GLOBALS['phpgw']->db->query("DELETE FROM phpgw_acl WHERE acl_location='".$GLOBALS['account_id']."' OR acl_account=".$GLOBALS['account_id'],__LINE__,__FILE__); + $GLOBALS['phpgw']->db->unlock(); } ?>