From 6343efba104e0a00ea7740351a7a83b72496576e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Stan=C4=9Bk?= Date: Fri, 11 May 2018 21:35:03 +0200 Subject: [PATCH] oprava testu role --- app/services/Authenticator.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/services/Authenticator.php b/app/services/Authenticator.php index 41e933ba4..d2867ee56 100644 --- a/app/services/Authenticator.php +++ b/app/services/Authenticator.php @@ -164,8 +164,7 @@ public function updateRoles($user, $testedRole = NULL) $netteRoles[$roleUnapproved->getId()] = $roleUnapproved->getName(); } } else { - $roleTest = $this->roleRepository->findBySystemName(Role::TEST); - $netteRoles[$roleTest->getId()] = $roleTest->getName(); + $netteRoles[0] = Role::TEST; $netteRoles[$testedRole->getId()] = $testedRole->getName(); }