acl rights should be int, so need to enforce the type

This commit is contained in:
shrykedude 2004-01-26 08:56:11 +00:00
parent 2464573ac3
commit c353fa6469

View File

@ -965,7 +965,7 @@
{
$this->add_acl('phpgw_group',(int)$groupid,(int)$accountid);
}
$this->add_acl('preferences','changepassword',(int)$accountid, (boolean)$changepw);
$this->add_acl('preferences','changepassword',(int)$accountid, (int)$changepw);
return $accountid;
}
@ -985,6 +985,7 @@
$this->setup_account_object();
$account = $GLOBALS['phpgw']->accounts->name2id($account);
}
$rights = (int)$rights;
if (!is_object($this->db)) $this->loaddb();
if (!is_array($apps)) $apps = array($apps);