Commit 7395c567 authored by iv's avatar iv

ERP5Workflow: fix boolean logic typo

parent 0f6792b9
......@@ -31,8 +31,8 @@ class GuardableMixin(object):
security.declareObjectProtected(ManagePortal)
def isGuarded(self):
return self.guard_expression and self.guard_group and \
self.guard_permission and guard_role
return self.guard_expression or self.guard_group or \
self.guard_permission or self.guard_role
def checkGuard(self, security_manager, workflow, current_object, check_roles=True, **kw):
"""Checks conditions in this guard.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment