# HG changeset patch # User Sylvain Thénault # Date 1270627504 -7200 # Node ID 4d99cccffe36f80c87130736466aca4a969458be # Parent 1202e6565affadb14882fa5283164c4e2e572f6f [wf] should use is_in_group to avoid error with internal manager diff -r 1202e6565aff -r 4d99cccffe36 hooks/workflow.py --- a/hooks/workflow.py Tue Apr 06 18:36:09 2010 +0200 +++ b/hooks/workflow.py Wed Apr 07 10:05:04 2010 +0200 @@ -193,7 +193,7 @@ raise ValidationError(entity.eid, {None: msg}) # True if we are coming back from subworkflow swtr = session.transaction_data.pop((forentity.eid, 'subwfentrytr'), None) - cowpowers = ('managers' in session.user.groups + cowpowers = (session.user.is_in_group('managers') or not session.write_security) # no investigate the requested state change... try: