mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-01-24 16:24:18 +03:00
DjangoModelPermisson's desc
This commit is contained in:
parent
b236241982
commit
963d2ecccb
|
@ -91,6 +91,8 @@ class IsUserOrIsAnonReadOnly(BasePermission):
|
||||||
|
|
||||||
class DjangoModelPermisson(BasePermission):
|
class DjangoModelPermisson(BasePermission):
|
||||||
"""
|
"""
|
||||||
|
The request is authenticated against the Django user's permissions on the
|
||||||
|
`Resource`'s `Model`, if the resource is a `ModelResource`.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def check_permission(self, user):
|
def check_permission(self, user):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user