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('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; return $accountid;
} }
@ -985,6 +985,7 @@
$this->setup_account_object(); $this->setup_account_object();
$account = $GLOBALS['phpgw']->accounts->name2id($account); $account = $GLOBALS['phpgw']->accounts->name2id($account);
} }
$rights = (int)$rights;
if (!is_object($this->db)) $this->loaddb(); if (!is_object($this->db)) $this->loaddb();
if (!is_array($apps)) $apps = array($apps); if (!is_array($apps)) $apps = array($apps);