Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
blog
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cubicweb
cubes
blog
Commits
750e3df3cda8
Commit
750e3df3cda8
authored
14 years ago
by
Sandrine Ribeau
Browse files
Options
Downloads
Patches
Plain Diff
ticket #847750, blog entry owners should be able to publish
parent
3cb7432a4e46
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
migration/1.7.3_Any.py
+4
-0
4 additions, 0 deletions
migration/1.7.3_Any.py
migration/postcreate.py
+1
-1
1 addition, 1 deletion
migration/postcreate.py
with
5 additions
and
1 deletion
migration/1.7.3_Any.py
0 → 100644
+
4
−
0
View file @
750e3df3
# 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
()
This diff is collapsed.
Click to expand it.
migration/postcreate.py
+
1
−
1
View file @
750e3df3
...
...
@@ -7,5 +7,5 @@
published
=
bwf
.
add_state
(
_
(
'
published
'
))
publish
=
bwf
.
add_transition
(
_
(
'
publish
'
),
draft
,
published
,
(
'
managers
'
,))
(
'
managers
'
,
'
owners
'
))
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment