summaryrefslogtreecommitdiff
path: root/ishtar_common/wizards.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2018-12-04 11:15:44 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2018-12-04 11:15:44 +0100
commitf64fa407086ae642426c3a081bc647ec03c0e372 (patch)
treeff07444b73ef267fbfcbbb38c30166f812f63aa1 /ishtar_common/wizards.py
parentdf40e324fa1b5eed4bc4dc3ece0f0e8eea98ea10 (diff)
downloadIshtar-f64fa407086ae642426c3a081bc647ec03c0e372.tar.bz2
Ishtar-f64fa407086ae642426c3a081bc647ec03c0e372.zip
Fix wizard permissions call
Diffstat (limited to 'ishtar_common/wizards.py')
-rw-r--r--ishtar_common/wizards.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/ishtar_common/wizards.py b/ishtar_common/wizards.py
index 446afc71e..47355dd06 100644
--- a/ishtar_common/wizards.py
+++ b/ishtar_common/wizards.py
@@ -147,7 +147,7 @@ class Wizard(IshtarWizard):
form, other_check)
return kwargs
- def check_own_permissions(self, request, step, *args, **kwargs):
+ def check_own_permissions(self, request, step=None, *args, **kwargs):
# reinit default dispatch of a wizard - not clean...
self.request = request
self.session = request.session
@@ -179,7 +179,7 @@ class Wizard(IshtarWizard):
step = kwargs.get('step', None)
# check that the current object is really owned by the current user
if step and self.current_right and '_own_' in self.current_right:
- if not self.check_permissions(request, step, *args, **kwargs):
+ if not self.check_own_permissions(request, *args, **kwargs):
return HttpResponseRedirect('/')
# extra filter on forms
self.filter_owns_items = True