From 815d9c02f81c8caf22de28ddc33d14e0b876a5e1 Mon Sep 17 00:00:00 2001 From: Eliot Berriot Date: Mon, 26 Aug 2019 14:48:30 +0200 Subject: [PATCH] See #890: Added Oauth scope for managing instance reports --- api/funkwhale_api/users/models.py | 2 ++ api/funkwhale_api/users/oauth/scopes.py | 1 + 2 files changed, 3 insertions(+) diff --git a/api/funkwhale_api/users/models.py b/api/funkwhale_api/users/models.py index 1e95aac2a..d19de05aa 100644 --- a/api/funkwhale_api/users/models.py +++ b/api/funkwhale_api/users/models.py @@ -46,6 +46,8 @@ PERMISSIONS_CONFIGURATION = { "write:instance:accounts", "read:instance:domains", "write:instance:domains", + "read:instance:reports", + "write:instance:reports", }, }, "library": { diff --git a/api/funkwhale_api/users/oauth/scopes.py b/api/funkwhale_api/users/oauth/scopes.py index 8cf91192c..e70f20256 100644 --- a/api/funkwhale_api/users/oauth/scopes.py +++ b/api/funkwhale_api/users/oauth/scopes.py @@ -34,6 +34,7 @@ BASE_SCOPES = [ Scope("instance:accounts", "Access instance federated accounts"), Scope("instance:domains", "Access instance domains"), Scope("instance:policies", "Access instance moderation policies"), + Scope("instance:reports", "Access instance moderation reports"), ] SCOPES = [ Scope("read", children=[s.copy("read") for s in BASE_SCOPES]),