summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--plugins/acl/acl.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/plugins/acl/acl.php b/plugins/acl/acl.php
index 2b1baaa3c..3c986a376 100644
--- a/plugins/acl/acl.php
+++ b/plugins/acl/acl.php
@@ -439,9 +439,11 @@ class acl extends rcube_plugin
$username = $user;
}
- if ($acl && $user && strlen($mbox)
- && $this->rc->imap->set_acl($mbox, $user, $acl)
- ) {
+ if ($acl && $user && $user != $_SESSION['username'] && strlen($mbox)) {
+ $result = $this->rc->imap->set_acl($mbox, $user, $acl);
+ }
+
+ if ($result) {
$ret = array('id' => html_identifier($user),
'username' => $username, 'acl' => implode($acl), 'old' => $oldid);
$this->rc->output->command('acl_update', $ret);