Skip to content

permissions.IsAdminUser is not valid #88

@Natim

Description

@Natim

Here is the patch

 diff -r 1a7ab7e5129c djangorestframework/permissions.py
--- a/djangorestframework/permissions.py    Wed Jul 13 12:42:02 2011 +0100
+++ b/djangorestframework/permissions.py    Sat Dec 03 10:43:13 2011 +0100
@@ -73,7 +73,7 @@
     """

     def check_permission(self, user):
-        if not user.is_admin():
+        if not user.is_superuser:
             raise _403_FORBIDDEN_RESPONSE

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions