mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-07 16:44:20 +01:00
get_specific_rights returns true, if there no acl data at all --> using 0 instead
This commit is contained in:
parent
0195bad452
commit
37992d0ee4
@ -342,10 +342,11 @@ class uiaclprefs
|
||||
*/
|
||||
function display_row($tr_class,$label,$id,$name,$no_privat_grants,$memberships)
|
||||
{
|
||||
//echo "<p>display_row(,$label,$id,$name,$no_privat_grants,".print_r($memberships,true).")</p>\n";
|
||||
$this->template->set_var('row_class',$tr_class);
|
||||
$this->template->set_var('user',$name);
|
||||
$rights = $this->acl->get_specific_rights($id, $GLOBALS['egw_info']['flags']['currentapp'], $memberships);
|
||||
if ($rights === true) $rights = 0; // get_specific_rights returns true, if there no acl data at all
|
||||
//error_log(__METHOD__."(, $label, $id, $name, $no_privat_grants, ".array2string($memberships).") rights=".array2string($rights));
|
||||
|
||||
foreach(array(
|
||||
EGW_ACL_READ => 'read',
|
||||
|
Loading…
Reference in New Issue
Block a user