mirror of
https://github.com/jazzband/django-admin2.git
synced 2026-03-25 02:20:26 +00:00
Merge pull request #82 from inglesp/remove-print
Remove spurious print statement
This commit is contained in:
commit
2d973e89aa
1 changed files with 0 additions and 1 deletions
|
|
@ -39,7 +39,6 @@ class AdminModel2Mixin(Admin2Mixin, AccessMixin):
|
|||
|
||||
def dispatch(self, request, *args, **kwargs):
|
||||
# Check if user has necessary permissions. If the permission_type isn't specified then check for staff status.
|
||||
print "distpatch perm check:", self.permission_type
|
||||
has_permission = self.modeladmin.has_permission(request, self.permission_type) \
|
||||
if self.permission_type else request.user.is_staff
|
||||
# Raise exception or redirect to login if user doesn't have permissions.
|
||||
|
|
|
|||
Loading…
Reference in a new issue