Commit 25db6eb9 authored by wenjie.zheng's avatar wenjie.zheng

Transition.py: add comment.

parent 8115611a
...@@ -91,6 +91,7 @@ class Transition(IdAsReferenceMixin("transition_", "prefix"), XMLObject): ...@@ -91,6 +91,7 @@ class Transition(IdAsReferenceMixin("transition_", "prefix"), XMLObject):
self.generateGuard() self.generateGuard()
if not self.guard.roles or self.guard.roles == []: if not self.guard.roles or self.guard.roles == []:
reasonable_roles = self.getParent().getManagedRoleList() reasonable_roles = self.getParent().getManagedRoleList()
# Make sure we do not give rights to anonymous users when no guard is defined
reasonable_roles.remove('Anonymous') reasonable_roles.remove('Anonymous')
self.guard.roles = reasonable_roles self.guard.roles = reasonable_roles
return self.guard return self.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