mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-02-03 05:04:31 +03:00
Docs tweak based on user feedback.
This commit is contained in:
parent
4a4fe60e33
commit
a57c0c5aae
|
@ -166,7 +166,8 @@ In the snippets app, create a new file, `permissions.py`
|
||||||
if obj is None:
|
if obj is None:
|
||||||
return True
|
return True
|
||||||
|
|
||||||
# Read permissions are allowed to any request
|
# Read permissions are allowed to any request,
|
||||||
|
# so we'll always allow GET, HEAD or OPTIONS requests.
|
||||||
if request.method in permissions.SAFE_METHODS:
|
if request.method in permissions.SAFE_METHODS:
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user