mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-04 06:39:16 +02:00
"[EPIC] Report option on everything - reports models
This commit is contained in:
parent
079671ef7a
commit
a6cf2ce019
22 changed files with 792 additions and 21 deletions
|
@ -96,8 +96,9 @@ class ScopePermission(permissions.BasePermission):
|
|||
):
|
||||
return False
|
||||
|
||||
# we use default anonymous scopes
|
||||
user_scopes = scopes.ANONYMOUS_SCOPES
|
||||
user_scopes = (
|
||||
getattr(view, "anonymous_scopes", set()) | scopes.ANONYMOUS_SCOPES
|
||||
)
|
||||
return should_allow(
|
||||
required_scope=required_scope, request_scopes=user_scopes
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue