This should now clear out the ACL entries when deleting a user.

This commit is contained in:
skeeter 2001-09-18 03:57:42 +00:00
parent 5cefe64960
commit e007771652

View File

@ -14,5 +14,8 @@
if($GLOBALS['account_id']) if($GLOBALS['account_id'])
{ {
$GLOBALS['phpgw']->accounts->delete($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();
} }
?> ?>