aboutsummaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorZach Smith <zach@driver.xyz>2017-06-02 19:09:46 -0700
committerZach Smith <zach@driver.xyz>2017-06-16 12:18:58 -0700
commitee9febde6cbb23a976852b41accdacbc1badecfb (patch)
tree20e94577d9c35c8b34cb25426c52c6f8dfc30a81 /src/test
parent38b7278027e81c97afde27fb48eefde3c6e254bd (diff)
downloaddriver-core-ee9febde6cbb23a976852b41accdacbc1badecfb.tar.gz
driver-core-ee9febde6cbb23a976852b41accdacbc1badecfb.tar.bz2
driver-core-ee9febde6cbb23a976852b41accdacbc1badecfb.zip
Return map of authorized permissions
Diffstat (limited to 'src/test')
-rw-r--r--src/test/scala/xyz/driver/core/AuthTest.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/scala/xyz/driver/core/AuthTest.scala b/src/test/scala/xyz/driver/core/AuthTest.scala
index bf776df..9018a3e 100644
--- a/src/test/scala/xyz/driver/core/AuthTest.scala
+++ b/src/test/scala/xyz/driver/core/AuthTest.scala
@@ -37,7 +37,7 @@ class AuthTest extends FlatSpec with Matchers with MockitoSugar with ScalatestRo
override def userHasPermissions(user: User, permissions: Seq[Permission])(
implicit ctx: ServiceRequestContext): Future[AuthorizationResult] = {
- val authorized = permissions.forall(_ === TestRoleAllowedPermission)
+ val authorized = permissions.map(p => p -> (p === TestRoleAllowedPermission)).toMap
Future.successful(AuthorizationResult(authorized, ctx.permissionsToken))
}
}