diff --git a/src/views/feature/Feature_edit.vue b/src/views/feature/Feature_edit.vue index 6df41e8301ffa2988452a454475435ab57989aa6..ef384ad43fb80e2802015cf24da2084c88b3975d 100644 --- a/src/views/feature/Feature_edit.vue +++ b/src/views/feature/Feature_edit.vue @@ -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();