Merge branch '229-anonymous-access' into 'develop'

Resolve "Ensure anonymous users can listen to music if instance is configured accordingly"

Closes #229

See merge request funkwhale/funkwhale!211
This commit is contained in:
Eliot Berriot 2018-05-24 20:52:40 +00:00
commit c6cd3abf9d
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