forked from extern/egroupware
More fixes for php3 support.
This commit is contained in:
parent
a3d40c6895
commit
bbb50109c0
@ -779,11 +779,11 @@
|
||||
{
|
||||
if($user == 0)
|
||||
{
|
||||
return ($this->grants[$this->owner] & $needed);
|
||||
return !!($this->grants[$this->owner] & $needed);
|
||||
}
|
||||
else
|
||||
{
|
||||
return ($this->grants[intval($user)] & $needed);
|
||||
return !!($this->grants[intval($user)] & $needed);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -612,7 +612,7 @@
|
||||
$accounts = Array();
|
||||
if ($db2->num_rows() == 0)
|
||||
{
|
||||
$grants[$GLOBALS['phpgw_info']['user']['account_id']] = (~ 0);
|
||||
$grants[$GLOBALS['phpgw_info']['user']['account_id']] = 31;
|
||||
return $grants;
|
||||
}
|
||||
while ($db2->next_record())
|
||||
@ -651,7 +651,7 @@
|
||||
}
|
||||
reset($accounts[$grantor]);
|
||||
}
|
||||
$grants[$GLOBALS['phpgw_info']['user']['account_id']] = (~ 0);
|
||||
$grants[$GLOBALS['phpgw_info']['user']['account_id']] = 31;
|
||||
return $grants;
|
||||
}
|
||||
} //end of acl class
|
||||
|
Loading…
Reference in New Issue
Block a user