Skip to content
Snippets Groups Projects
Commit 40258bb7 authored by Timothee P's avatar Timothee P :sunflower:
Browse files

fix contributor not able to create new feature & fix switching to draft...

fix contributor not able to create new feature & fix switching to draft restricted to pending features
parent 41ee7dd5
No related branches found
No related tags found
No related merge requests found
......@@ -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