get_specific_rights returns true, if there no acl data at all --> using 0 instead

This commit is contained in:
Ralf Becker 2012-07-31 17:56:27 +00:00
parent 0195bad452
commit 37992d0ee4

View File

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