From 84ad92cd5dd87af7f59f89ed41668f6e371ca3b4 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Tue, 31 Jul 2012 17:56:44 +0000 Subject: [PATCH] get_specific_rights returns true, if there no acl data at all --> using 0 instead --- preferences/inc/class.uiaclprefs.inc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/preferences/inc/class.uiaclprefs.inc.php b/preferences/inc/class.uiaclprefs.inc.php index 5b6b71a9a3..fc2811e24e 100644 --- a/preferences/inc/class.uiaclprefs.inc.php +++ b/preferences/inc/class.uiaclprefs.inc.php @@ -342,10 +342,11 @@ class uiaclprefs */ function display_row($tr_class,$label,$id,$name,$no_privat_grants,$memberships) { - //echo "

display_row(,$label,$id,$name,$no_privat_grants,".print_r($memberships,true).")

\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',