Fix #229: removed last hardcoded settings to protect audio files

This commit is contained in:
Eliot Berriot 2018-05-24 21:34:59 +02:00
parent 9c02954e46
commit 2586444db2
No known key found for this signature in database
GPG key ID: DD6965E2476E5C27
6 changed files with 44 additions and 44 deletions

View file

@ -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