merge stable
authorAlexandre Fayolle <alexandre.fayolle@logilab.fr>
Wed, 07 Apr 2010 11:57:37 +0200
branchstable
changeset 5172 865a3e522add
parent 5171 1c2567af37dd (current diff)
parent 5164 4d99cccffe36 (diff)
child 5175 6efb7a7ae570
merge
--- 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: