# HG changeset patch # User Alexandre Fayolle # Date 1270634257 -7200 # Node ID 865a3e522add975ad804cbe10f901706da3f1a2c # Parent 1c2567af37ddb678767ea63ba74f7c922fd7d297# Parent 4d99cccffe36f80c87130736466aca4a969458be merge diff -r 1c2567af37dd -r 865a3e522add hooks/workflow.py --- a/hooks/workflow.py Wed Apr 07 11:56:30 2010 +0200 +++ b/hooks/workflow.py Wed Apr 07 11:57:37 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: