mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-07-23 22:49:50 +03:00
Untabify example in #299
This commit is contained in:
parent
c90303aa89
commit
507e8b9c68
|
@ -119,7 +119,7 @@ Example of a custom permission checking authenticated user's first name for an a
|
|||
"""
|
||||
def has_permission(self, request, view, obj=None):
|
||||
if (request.user and
|
||||
request.user.first_name in ("John", "Paul", "Ringo", "George",)):
|
||||
request.user.first_name in ("John", "Paul", "Ringo", "George",)):
|
||||
return True
|
||||
else:
|
||||
return False
|
||||
|
|
Loading…
Reference in New Issue
Block a user