Skip to content

Commit

Permalink
fix bug in handling of globaladdressbook_admin regex (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
johndoh committed Feb 26, 2019
1 parent d42f17b commit 7ba923e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
Roundcube Webmail GlobalAddressbook
===================================

Version 1.11.1 (2019-02-26, rc-1.0)
=================================================
* Fix bug in handling of globaladdressbook_admin regex (#47)

Version 1.11 (2018-03-11, rc-1.0)
=================================================
* Include plugin in all tasks
Expand Down
2 changes: 1 addition & 1 deletion globaladdressbook.php
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ private function _set_permissions()
}

foreach ($admin as $user) {
if ($user == $_SESSION['username'] || @preg_match($user, $_SESSION['username']) !== false) {
if ($user == $_SESSION['username'] || @preg_match($user, $_SESSION['username']) === 1) {
$this->readonly = false;
$isAdmin = true;
break;
Expand Down

0 comments on commit 7ba923e

Please sign in to comment.