From e3e31e17718741feab9362ebdf4bc0da80d233a2 Mon Sep 17 00:00:00 2001 From: tom-anders <13141438+tom-anders@users.noreply.github.com> Date: Sun, 8 Sep 2024 20:23:14 +0200 Subject: [PATCH] add mobile OAuth scope to mine.*() study endpoints --- app/controllers/Study.scala | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/controllers/Study.scala b/app/controllers/Study.scala index cf7e329cd414c..2f5ad74f7f674 100644 --- a/app/controllers/Study.scala +++ b/app/controllers/Study.scala @@ -83,7 +83,7 @@ final class Study( apiStudies(pag) ) - def mine(order: Order, page: Int) = Auth { ctx ?=> me ?=> + def mine(order: Order, page: Int) = AuthOrScoped(_.Web.Mobile) { ctx ?=> me ?=> for pag <- env.study.pager.mine(order, page) _ <- preloadMembers(pag) @@ -96,7 +96,7 @@ final class Study( yield res } - def minePublic(order: Order, page: Int) = Auth { ctx ?=> me ?=> + def minePublic(order: Order, page: Int) = AuthOrScoped(_.Web.Mobile) { ctx ?=> me ?=> for pag <- env.study.pager.minePublic(order, page) _ <- preloadMembers(pag) @@ -107,7 +107,7 @@ final class Study( yield res } - def minePrivate(order: Order, page: Int) = Auth { ctx ?=> me ?=> + def minePrivate(order: Order, page: Int) = AuthOrScoped(_.Web.Mobile) { ctx ?=> me ?=> for pag <- env.study.pager.minePrivate(order, page) _ <- preloadMembers(pag) @@ -119,7 +119,7 @@ final class Study( } - def mineMember(order: Order, page: Int) = Auth { ctx ?=> me ?=> + def mineMember(order: Order, page: Int) = AuthOrScoped(_.Web.Mobile) { ctx ?=> me ?=> for pag <- env.study.pager.mineMember(order, page) _ <- preloadMembers(pag) @@ -135,7 +135,7 @@ final class Study( yield res } - def mineLikes(order: Order, page: Int) = Auth { ctx ?=> me ?=> + def mineLikes(order: Order, page: Int) = AuthOrScoped(_.Web.Mobile) { ctx ?=> me ?=> for pag <- env.study.pager.mineLikes(order, page) _ <- preloadMembers(pag)