mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-23 23:29:31 +01:00
acl rights should be int, so need to enforce the type
This commit is contained in:
parent
2464573ac3
commit
c353fa6469
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user