mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-09-16 09:12:29 +03:00
Doc review for the permission IsModelInstanceOwnerOrIsAnonReadOnly
This commit is contained in:
parent
ada676123e
commit
fcd026f506
|
@ -81,8 +81,8 @@ class IsModelInstanceOwnerOrIsAnonReadOnly(BasePermission):
|
||||||
"""
|
"""
|
||||||
The request is authenticated as the owner of the model instance, or is a read-only request.
|
The request is authenticated as the owner of the model instance, or is a read-only request.
|
||||||
|
|
||||||
In order to determine the owner the model has to provide a .get_owner() function,
|
In order to determine the owner, the model has to provide a .get_owner() function that
|
||||||
otherwise the permission will be denied.
|
returns the owner, otherwise the permission will be denied.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def check_permission(self, user):
|
def check_permission(self, user):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user