From: Michael M Slusarz Date: Thu, 21 Oct 2010 06:04:33 +0000 (-0600) Subject: Bug #4480: always show mailbox list, even on ACL list error X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=4d4352c2f89d39c3dd5b010b7249745dd1f16d03;p=horde.git Bug #4480: always show mailbox list, even on ACL list error --- diff --git a/imp/lib/Prefs/Ui.php b/imp/lib/Prefs/Ui.php index 1ee767d41..630792567 100644 --- a/imp/lib/Prefs/Ui.php +++ b/imp/lib/Prefs/Ui.php @@ -701,10 +701,9 @@ class IMP_Prefs_Ui $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) { @@ -722,9 +721,8 @@ class IMP_Prefs_Ui $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(); @@ -750,10 +748,6 @@ class IMP_Prefs_Ui } $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); diff --git a/imp/templates/prefs/acl.html b/imp/templates/prefs/acl.html index 5e6bb30da..c1cc15cbc 100644 --- a/imp/templates/prefs/acl.html +++ b/imp/templates/prefs/acl.html @@ -1,11 +1,11 @@ +

- -

User

@@ -50,8 +50,8 @@
+