summaryrefslogtreecommitdiff
path: root/plugins/acl/acl.php
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2012-06-28 10:43:50 +0200
committerAleksander Machniak <alec@alec.pl>2012-06-28 10:43:50 +0200
commitb866a27364a66c436156732553b1fa638e046b8b (patch)
treee25c15085bd33100d4545307579f68cb5dd2b5f7 /plugins/acl/acl.php
parenta60d139d873b77852658ddac04279b6f1e5570ce (diff)
Fix handling of MYRIGHTS on private namespace roots - fixes issue where
in ACL plugin it wasn't possible to share INBOX folder (when it was a namespace prefix).
Diffstat (limited to 'plugins/acl/acl.php')
-rw-r--r--plugins/acl/acl.php16
1 files changed, 4 insertions, 12 deletions
diff --git a/plugins/acl/acl.php b/plugins/acl/acl.php
index ab981ab89..8709f0b00 100644
--- a/plugins/acl/acl.php
+++ b/plugins/acl/acl.php
@@ -128,8 +128,10 @@ class acl extends rcube_plugin
*/
function folder_form($args)
{
- // Edited folder name (empty in create-folder mode)
$mbox_imap = $args['options']['name'];
+ $myrights = $args['options']['rights'];
+
+ // Edited folder name (empty in create-folder mode)
if (!strlen($mbox_imap)) {
return $args;
}
@@ -139,18 +141,8 @@ class acl extends rcube_plugin
return $args;
}
*/
- // Namespace root
- if ($args['options']['is_root']) {
- return $args;
- }
-
// Get MYRIGHTS
- if (!($myrights = $args['options']['rights'])) {
- return $args;
- }
-
- // Do nothing if no ACL support
- if (!$this->rc->storage->get_capability('ACL')) {
+ if (empty($myrights)) {
return $args;
}