diff --git a/app/controllers/UserTokenController.scala b/app/controllers/UserTokenController.scala index f6786744ab..3f36a11375 100644 --- a/app/controllers/UserTokenController.scala +++ b/app/controllers/UserTokenController.scala @@ -87,7 +87,7 @@ class UserTokenController @Inject()(val messagesApi: MessagesApi) def tryAdministrate: Fox[UserAccessAnswer] = { userBox match { - case Full(user) => Fox.successful(UserAccessAnswer(user.isAdmin)) + case Full(user) => Fox.successful(UserAccessAnswer(user.isAdmin || user.teamManagerTeams.nonEmpty)) case _ => Fox.successful(UserAccessAnswer(false, Some("invalid access token"))) } }