Skip to content

Commit

Permalink
Merge pull request #2688 from scalableminds/dataset-refresh-button
Browse files Browse the repository at this point in the history
Fix refresh datasets for teammanagers
  • Loading branch information
fm3 authored Jun 7, 2018
2 parents 26b58ff + b483a3d commit 2c18a02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/UserTokenController.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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")))
}
}
Expand Down

0 comments on commit 2c18a02

Please sign in to comment.