ticket #847750, blog entry owners should be able to publish stable
authorSandrine Ribeau <sandrine.ribeau@logilab.fr>
Wed, 14 Apr 2010 10:47:36 +0200
branchstable
changeset 186 750e3df3cda8
parent 185 3cb7432a4e46
child 187 be454372d12a
ticket #847750, blog entry owners should be able to publish
migration/1.7.3_Any.py
migration/postcreate.py
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/migration/1.7.3_Any.py	Wed Apr 14 10:47:36 2010 +0200
@@ -0,0 +1,4 @@
+# add group "owners" in transition "publish" of BlogEntry workflow permissions
+rql('SET T require_group G WHERE G name "owners", T transition_of W, '
+    'T name "publish", W workflow_of ET, ET name "BlogEntry"')
+commit()
--- a/migration/postcreate.py	Wed Apr 14 10:47:31 2010 +0200
+++ b/migration/postcreate.py	Wed Apr 14 10:47:36 2010 +0200
@@ -7,5 +7,5 @@
 published = bwf.add_state(_('published'))
 
 publish = bwf.add_transition(_('publish'), draft, published,
-                             ('managers',))
+                             ('managers', 'owners'))