Suggestion from code review

Co-authored-by: Hugh Nimmo-Smith <hughns@users.noreply.github.com>
This commit is contained in:
Quentin Gliech
2023-09-05 12:23:15 +02:00
parent b0c9e02b26
commit 5ec7e7ef05

View File

@@ -20,6 +20,7 @@ allowed_scope("email") = true
# This grants access to Synapse's admin API endpoints
allowed_scope("urn:synapse:admin:*") {
# Synapse doesn't support user-less tokens yet, so access to the admin API can only be used with an authorization_code grant as the user is present
input.grant_type == "authorization_code"
some user in data.admin_users
input.user.username == user