Commit c478177d authored by Rafael Monnerat's avatar Rafael Monnerat

slapos_subscription: Only apply condition on earlier stages (draft or planned)

parent 16ebe042
...@@ -2,9 +2,9 @@ from zExceptions import Unauthorized ...@@ -2,9 +2,9 @@ from zExceptions import Unauthorized
if REQUEST is not None: if REQUEST is not None:
raise Unauthorized raise Unauthorized
#if context.getSimulationState() not in ["draft", "planned"]: if context.getSimulationState() not in ["draft", "planned"]:
# Don't modify it anymore # Don't modify it anymore
# return return
if subscription_condition_reference is not None: if subscription_condition_reference is not None:
# It would be better use some clever API here. # It would be better use some clever API here.
......
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