See #890: Added Oauth scope for managing instance reports

environments/review-docs-rate-jr6phc/deployments/2479
Eliot Berriot 2019-08-26 14:48:30 +02:00
rodzic 177f06cf2a
commit 815d9c02f8
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: DD6965E2476E5C27
2 zmienionych plików z 3 dodań i 0 usunięć

Wyświetl plik

@ -46,6 +46,8 @@ PERMISSIONS_CONFIGURATION = {
"write:instance:accounts",
"read:instance:domains",
"write:instance:domains",
"read:instance:reports",
"write:instance:reports",
},
},
"library": {

Wyświetl plik

@ -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]),