$curr_acl = $acl->getACL($folder);
} catch (IMP_Exception $e) {
$GLOBALS['notification']->push($e);
- return '';
+ $curr_acl = array();
}
$canEdit = $acl->canEdit($folder, $GLOBALS['registry']->getAuth());
-
$canEdit = false;
if (!$canEdit) {
$t->set('current', sprintf(_("Current access to %s"), IMP::displayFolder($folder)));
$t->set('folder', IMP::formMbox($folder, true));
$t->set('hasacl', count($curr_acl));
- $t->set('maxrule', 1);
- if (!$t->get('noacl')) {
+ if (!$t->get('hasacl')) {
$i = 0;
$cval = array();
$protected = $acl->getProtected();
}
$t->set('curr_acl', $cval);
- $t->set('maxval', count($curr_acl));
-
- /* Number of individual ACL options, for table rendering. */
- $t->set('maxrule', count($rights));
}
$t->set('canedit', $canEdit);
<input type="hidden" name="acl_folder" value="<tag:folder />" />
+<if:hasacl>
<div>
<h3><tag:current /></h3>
</div>
<table class="prefsAclTable">
-<if:hasacl>
<tr>
<th class="item" width="<tag:width />">
<h4><strong><gettext>User</gettext></strong></h4>
</loop:rights>
</tr>
</if:canedit>
-</if:hasacl>
</table>
+</if:hasacl>
<div>
<span class="folderImg"></span>