Skip to content
Snippets Groups Projects
Commit 376f19ff authored by Vinciane's avatar Vinciane
Browse files

FIX #9314 Add exceptions routes if user ABS

parent 007537f8
No related branches found
No related tags found
No related merge requests found
...@@ -48,7 +48,7 @@ class AuthenticationController ...@@ -48,7 +48,7 @@ class AuthenticationController
if ($aArgs['currentRoute'] != '/initialize') { if ($aArgs['currentRoute'] != '/initialize') {
$user = UserModel::getByLogin(['select' => ['status', 'change_password'], 'login' => $aArgs['userId']]); $user = UserModel::getByLogin(['select' => ['status', 'change_password'], 'login' => $aArgs['userId']]);
if ($user['status'] == 'ABS' && !in_array($aArgs['currentRoute'], ['/users/{id}/status', '/currentUser/profile', '/header'])) { if ($user['status'] == 'ABS' && !in_array($aArgs['currentRoute'], ['/users/{id}/status', '/currentUser/profile', '/header', '/passwordRules', '/currentUser/password'])) {
return ['isRouteAvailable' => false, 'errors' => 'User is ABS and must be activated']; return ['isRouteAvailable' => false, 'errors' => 'User is ABS and must be activated'];
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment