mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-20 01:48:01 +02:00
removing all it's acl-rights if an account gets deleted, admin only removed the run-rights, but not the grants or other rights
This commit is contained in:
parent
25ba714000
commit
6b8f6a3d87
@ -368,6 +368,9 @@
|
|||||||
{
|
{
|
||||||
$this->cache_invalidate($accountid);
|
$this->cache_invalidate($accountid);
|
||||||
accounts_::delete($accountid);
|
accounts_::delete($accountid);
|
||||||
|
|
||||||
|
// delete all acl_entries belonging to that user or group
|
||||||
|
$GLOBALS['phpgw']->acl->delete($accountid);
|
||||||
}
|
}
|
||||||
|
|
||||||
function create($account_info,$default_prefs=True)
|
function create($account_info,$default_prefs=True)
|
||||||
|
@ -769,5 +769,18 @@
|
|||||||
|
|
||||||
return $grants;
|
return $grants;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Deletes all ACL entries for an account (user or group)
|
||||||
|
*
|
||||||
|
* @param int $account_id acount-id
|
||||||
|
*/
|
||||||
|
function delete_account($account_id)
|
||||||
|
{
|
||||||
|
if ((int) $account_id)
|
||||||
|
{
|
||||||
|
$this->db->query('DELETE FROM phpgw_acl WHERE acl_account='.(int)$account_id,__LINE__,__FILE__);
|
||||||
|
}
|
||||||
|
}
|
||||||
} //end of acl class
|
} //end of acl class
|
||||||
?>
|
?>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user