mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 00:29:38 +01:00
fixes for removing user grants
This commit is contained in:
parent
de2aa31d33
commit
77e137a1c1
@ -214,10 +214,10 @@
|
||||
$this->db->query($sql ,__LINE__,__FILE__);
|
||||
}
|
||||
|
||||
function remove_granted_rights($app, $id_type = "u", $id="") {
|
||||
function remove_granted_rights($app, $location, $id="") {
|
||||
global $phpgw, $phpgw_info;
|
||||
if ($id == ""){$id = $phpgw_info["user"]["account_id"];}
|
||||
$sql = "DELETE FROM phpgw_acl WHERE acl_appname='".$app."' AND acl_account_type = 'u' AND acl_location like '".$id_type."_%' AND acl_account='".$id."'";
|
||||
$sql = "DELETE FROM phpgw_acl WHERE acl_appname='".$app."' AND acl_account_type = 'u' AND acl_location='".$location."' AND acl_account='".$id."'";
|
||||
$this->db->query($sql ,__LINE__,__FILE__);
|
||||
}
|
||||
} //end of acl class
|
||||
|
Loading…
Reference in New Issue
Block a user