Skip to content

Commit

Permalink
Bug #14295 Fix creating/removing mailbox in cyrsql driver.
Browse files Browse the repository at this point in the history
Signed-off-by: Michael J Rubinsky <mrubinsk@horde.org>
  • Loading branch information
fedemennite authored and mrubinsk committed Mar 22, 2016
1 parent 03bc76f commit 47c5847
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions framework/Auth/lib/Horde/Auth/Cyrsql.php
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ public function addUser($userId, $credentials)
parent::addUser($userId, $credentials);
}

$mailbox = $this->_params['userhierarchy'];
$mailbox = $this->_params['userhierarchy'] . $userId;

try {
$this->_imap->createMailbox($mailbox);
Expand Down Expand Up @@ -309,7 +309,7 @@ public function removeUser($userId)
/* Set ACL for mailbox deletion. */
list($admin) = explode('@', $this->_params['cyradmin']);

$mailbox = $this->_params['userhierarchy'];
$mailbox = $this->_params['userhierarchy'] . $userId;

try {
$this->_imap->setACL($mailbox, $admin, array('rights' => 'lrswipcda'));
Expand Down

0 comments on commit 47c5847

Please sign in to comment.