Skip to content
This repository was archived by the owner on Nov 25, 2020. It is now read-only.

Commit 77702c9

Browse files
committed
Remove unnecessary regexp on usersloop as we already pass the regexp value to listUsers()
1 parent c4f9635 commit 77702c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/plugins/core.conf/class.AbstractConfDriver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1158,7 +1158,7 @@ public function switchAction($action, $httpVars, $fileVars)
11581158
if($userObject->getId() == $loggedUser->getId()) continue;
11591159
if ( ( !$userObject->hasParent() && ConfService::getCoreConf("ALLOW_CROSSUSERS_SHARING", "conf")) || $userObject->getParent() == $loggedUser->getId() ) {
11601160
$userLabel = $userObject->personalRole->filterParameterValue("core.conf", "USER_DISPLAY_NAME", AJXP_REPO_SCOPE_ALL, $userId);
1161-
if($regexp != null && ! (preg_match("/$regexp/i", $userId) || preg_match("/$regexp/i", $userLabel)) ) continue;
1161+
//if($regexp != null && ! (preg_match("/$regexp/i", $userId) || preg_match("/$regexp/i", $userLabel)) ) continue;
11621162
if(empty($userLabel)) $userLabel = $userId;
11631163
$userDisplay = ($userLabel == $userId ? $userId : $userLabel . " ($userId)");
11641164
if (ConfService::getCoreConf("USERS_LIST_HIDE_LOGIN", "conf") == true && $userLabel != $userId) {

0 commit comments

Comments
 (0)