fixes for removing user grants

This commit is contained in:
skeeter 2001-01-25 17:58:08 +00:00
parent de2aa31d33
commit 77e137a1c1

View File

@ -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