Skip to content

Commit

Permalink
Simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
yunosh committed Apr 19, 2017
1 parent 367f8c3 commit ca5d241
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions imp/lib/Prefs/Special/Acl.php
Expand Up @@ -110,13 +110,11 @@ public function display(Horde_Core_Prefs_Ui $ui)
$view->curr_acl = $cval;
}

$current_users = array_keys($curr_acl);
$new_user = array();

try {
$auth_imap = $injector->getInstance('IMP_AuthImap');
foreach ((array('anyone') + $auth_imap->listUsers()) as $user) {
if (!in_array($user, $current_users)) {
if (!isset($curr_acl[$user])) {
$new_user[] = htmlspecialchars($user);
}
}
Expand Down

0 comments on commit ca5d241

Please sign in to comment.