Skip to content
Snippets Groups Projects
Commit 6d6b27d5 authored by Sébastien DA ROCHA's avatar Sébastien DA ROCHA :bicyclist:
Browse files

Merge branch 'redmine-issues/12402' into 'develop'

REDMINE_ISSUE-12402

See merge request !136
parents 41ee7dd5 40258bb7
No related branches found
No related tags found
1 merge request!136REDMINE_ISSUE-12402
......@@ -693,13 +693,13 @@ export default {
}
if (is_valid) {
//* if moderate project modified by someone else than admin or moderator, switch published status to pending
//* in a moderate project, at edition of a published feature by someone else than admin or moderator, switch published status to draft.
if (
this.project.moderation &&
this.currentRouteName === "editer-signalement" &&
this.form.status.value.value === "published" &&
!this.permissions.is_project_administrator &&
!this.permissions.is_project_moderator &&
this.feature.status === "pending" //* allow (super)contributor to change status to pending
!this.permissions.is_project_moderator
) {
this.form.status.value = { name: "Brouillon", value: "draft" };
this.updateStore();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment