Skip to content

Commit

Permalink
#1374 Map init user to sytem user
Browse files Browse the repository at this point in the history
  • Loading branch information
To-om committed Jul 22, 2020
1 parent 5a29398 commit 9e862db
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ class Output @Inject() (
if (login.contains('@')) login.toLowerCase
else s"$login@$defaultUserDomain".toLowerCase
users
.get(validLogin)
.get(if (validLogin.startsWith("init@")) User.system.login else validLogin)
.fold[Try[User with Entity]](Failure(NotFoundError(s"User $login not found")))(Success.apply)
}

Expand Down

0 comments on commit 9e862db

Please sign in to comment.