Skip to content

Commit

Permalink
Merge pull request #532 from jan-stanek/test-role
Browse files Browse the repository at this point in the history
oprava testu role
  • Loading branch information
Jan Staněk authored May 11, 2018
2 parents 975c6dd + 6343efb commit c5a0da7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/services/Authenticator.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down

0 comments on commit c5a0da7

Please sign in to comment.