Changeset 4979 in subversion


Ignore:
Timestamp:
Jul 27, 2011 1:50:39 PM (22 months ago)
Author:
alec
Message:
  • Don't allow setting rights to yourself
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/plugins/acl/acl.php

    r4970 r4979  
    440440        } 
    441441 
    442         if ($acl && $user && strlen($mbox) 
    443             && $this->rc->imap->set_acl($mbox, $user, $acl) 
    444         ) { 
     442        if ($acl && $user && $user != $_SESSION['username'] && strlen($mbox)) { 
     443            $result = $this->rc->imap->set_acl($mbox, $user, $acl); 
     444        } 
     445 
     446        if ($result) { 
    445447            $ret = array('id' => html_identifier($user), 
    446448                 'username' => $username, 'acl' => implode($acl), 'old' => $oldid); 
Note: See TracChangeset for help on using the changeset viewer.