mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-05 13:00:12 +03:00
Merge ae50bb9275
into fd72a814f8
This commit is contained in:
commit
0287ad6004
|
@ -75,7 +75,8 @@ class IsAuthenticatedOrReadOnly(BasePermission):
|
||||||
class DjangoModelPermissions(BasePermission):
|
class DjangoModelPermissions(BasePermission):
|
||||||
"""
|
"""
|
||||||
The request is authenticated using `django.contrib.auth` permissions.
|
The request is authenticated using `django.contrib.auth` permissions.
|
||||||
See: https://docs.djangoproject.com/en/dev/topics/auth/#permissions
|
See:
|
||||||
|
https://docs.djangoproject.com/en/dev/topics/auth/customizing/#custom-permissions
|
||||||
|
|
||||||
It ensures that the user is authenticated, and has the appropriate
|
It ensures that the user is authenticated, and has the appropriate
|
||||||
`add`/`change`/`delete` permissions on the model.
|
`add`/`change`/`delete` permissions on the model.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user