diff options
| author | Tom Christie | 2012-09-13 18:32:56 +0100 |
|---|---|---|
| committer | Tom Christie | 2012-09-13 18:32:56 +0100 |
| commit | 6c109ac60f891955df367c61d4d7094039098076 (patch) | |
| tree | 813962df0083994aa70e9e5c3f81f8bc677a583b /docs/api-guide/permissions.md | |
| parent | b16c45aa6dfb5937d01f0c89273cd24f5e729f60 (diff) | |
| download | django-rest-framework-6c109ac60f891955df367c61d4d7094039098076.tar.bz2 | |
Improve throttles and docs
Diffstat (limited to 'docs/api-guide/permissions.md')
| -rw-r--r-- | docs/api-guide/permissions.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/api-guide/permissions.md b/docs/api-guide/permissions.md index 8d5e5140..fafef305 100644 --- a/docs/api-guide/permissions.md +++ b/docs/api-guide/permissions.md @@ -88,7 +88,7 @@ The `DjangoModelPermissions` class also supports object-level permissions. Thir ## Custom permissions -To implement a custom permission, override `BasePermission` and implement the `.check_permission(self, request, obj=None)` method. +To implement a custom permission, override `BasePermission` and implement the `.has_permission(self, request, obj=None)` method. The method should return `True` if the request should be granted access, and `False` otherwise. |
