Skip to content
This repository has been archived by the owner on Apr 7, 2023. It is now read-only.

Commit

Permalink
fix: OMG, permissions checking din't work
Browse files Browse the repository at this point in the history
  • Loading branch information
rudyryk committed Sep 20, 2013
1 parent 6a59ab1 commit b026a6b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions smarter/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
Licensed under BSD, see LICENSE for more details.
"""
import re
from django.conf.urls.defaults import patterns, include, url
from django.conf.urls import patterns, include, url
from django.forms.models import modelform_factory, ModelForm
from django.http import HttpResponse
from django.shortcuts import get_object_or_404, render, redirect
Expand Down Expand Up @@ -369,7 +369,7 @@ def _pipe__init(self, request, **kwargs):
are not sufficient returns ``self.deny(request)``.
"""
perm = self.get_param(request, 'permissions')
if perm and not request.user.has_perm(perm):
if perm and not request.user.has_perm(*perm):
return self.deny(request)

def _pipe(self, request, **kwargs):
Expand Down

0 comments on commit b026a6b

Please sign in to comment.