Skip to content

Commit

Permalink
Role require_group decorator bug *args, **kwargs
Browse files Browse the repository at this point in the history
  • Loading branch information
wjdp committed Oct 14, 2014
1 parent f871746 commit b519348
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions xSACdb/roles/decorators.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ def __init__(self, f):
def is_allowed(self,user):
return False

def __call__(self,request):
def __call__(self,request, *args, **kwargs):
if self.is_allowed(request.user):
return self.f(request)
return self.f(request, *args, **kwargs)
else:
raise PermissionDenied

Expand Down
4 changes: 2 additions & 2 deletions xSACdb/version.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Version file, currently manually updated

VERSION = {
'tag': 'nu-5',
'last_updated': '2014-09-28',
'tag': 'nu-5-bugfix-1',
'last_updated': '2014-10-14',
}

0 comments on commit b519348

Please sign in to comment.