mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-05 06:49:24 +02:00
Fix #229: removed last hardcoded settings to protect audio files
This commit is contained in:
parent
9c02954e46
commit
2586444db2
6 changed files with 44 additions and 44 deletions
|
@ -10,9 +10,6 @@ from funkwhale_api.federation import models
|
|||
class Listen(BasePermission):
|
||||
|
||||
def has_permission(self, request, view):
|
||||
if not settings.PROTECT_AUDIO_FILES:
|
||||
return True
|
||||
|
||||
if not preferences.get('common__api_authentication_required'):
|
||||
return True
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue