only safety test - api is not callable as non-user

This commit is contained in:
Matthias 2022-05-06 01:29:16 +02:00
parent 8f220837d0
commit d5c95f2225
No known key found for this signature in database
GPG Key ID: AB6D0E6C4CB65093

View File

@ -200,7 +200,7 @@ class UserSettingsPermissions(permissions.BasePermission):
try:
user = request.user
except AttributeError:
except AttributeError: # pragma: no cover
return False
return user == obj.user