More fixes for php3 support.

This commit is contained in:
skeeter 2001-09-07 19:18:03 +00:00
parent a3d40c6895
commit bbb50109c0
2 changed files with 4 additions and 4 deletions

View File

@ -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);
}
}

View File

@ -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