mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-23 15:18:58 +01:00
Trying to determine if variables are getting their types messed up.
This commit is contained in:
parent
1728149882
commit
94f59cfde8
@ -83,10 +83,11 @@
|
||||
return False;
|
||||
}
|
||||
|
||||
$this->memberships = Array();
|
||||
|
||||
for ($idx=0; $idx<count($security_equals); $idx++)
|
||||
{
|
||||
$name = $this->id2name(intval($security_equals[$idx]));
|
||||
$this->memberships[] = Array('account_id' => $security_equals[$idx], 'account_name' => $name);
|
||||
$this->memberships[] = Array('account_id' => intval($security_equals[$idx]), 'account_name' => $this->id2name(intval($security_equals[$idx])));
|
||||
}
|
||||
|
||||
return $this->memberships;
|
||||
|
@ -379,9 +379,10 @@ It should use the values in the $this->data
|
||||
$rights = 0;
|
||||
if ($this->db->num_rows() == 0 ){ return False; }
|
||||
while ($this->db->next_record()) {
|
||||
$rights = 0;
|
||||
$rights |= $this->db->f('acl_rights');
|
||||
if (!!($rights & $required) == True){
|
||||
$accounts[] = $this->db->f('acl_account');
|
||||
$accounts[] = intval($this->db->f('acl_account'));
|
||||
}
|
||||
}
|
||||
return $accounts;
|
||||
@ -438,7 +439,7 @@ It should use the values in the $this->data
|
||||
$sql = "select acl_account, acl_rights from phpgw_acl where acl_appname = '$app' and "
|
||||
. "acl_location in ";
|
||||
$security = "('". $phpgw_info['user']['account_id'] ."'";
|
||||
$my_memberships = $phpgw->accounts->memberships($phpgw_info['user']['account_id']);
|
||||
$my_memberships = $phpgw->accounts->memberships(intval($phpgw_info['user']['account_id']));
|
||||
while($groups = each($my_memberships))
|
||||
{
|
||||
$group = each($groups);
|
||||
|
Loading…
Reference in New Issue
Block a user