aboutsummaryrefslogtreecommitdiffstats
path: root/djangorestframework/permissions.py
diff options
context:
space:
mode:
authorTom Christie2011-05-19 08:36:55 +0100
committerTom Christie2011-05-19 08:36:55 +0100
commit8c3280f9c0d73c4e2536f1d757ad457b4a8f1de7 (patch)
treebbcc27d1187e98c179342e0a7c75084d0c2d7934 /djangorestframework/permissions.py
parent49d4e50342cd3a6e2dce9f61d379cb54a0c1c6b5 (diff)
downloaddjango-rest-framework-8c3280f9c0d73c4e2536f1d757ad457b4a8f1de7.tar.bz2
data flattening needs to go into resource
Diffstat (limited to 'djangorestframework/permissions.py')
-rw-r--r--djangorestframework/permissions.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/djangorestframework/permissions.py b/djangorestframework/permissions.py
index 1b151558..ae550f25 100644
--- a/djangorestframework/permissions.py
+++ b/djangorestframework/permissions.py
@@ -59,6 +59,7 @@ class IsAuthenticated(BasePermission):
if not user.is_authenticated():
raise _403_FORBIDDEN_RESPONSE
+
class IsAdminUser():
"""
Allows access only to admin users.