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

restrict reverting to draft status only if published

parent d0ddcfc1
No related branches found
No related tags found
No related merge requests found
...@@ -688,9 +688,10 @@ export default { ...@@ -688,9 +688,10 @@ export default {
} }
if (is_valid) { if (is_valid) {
//* if moderate project modified by someone else than admin or moderator, switch status to pending //* if moderate project modified by someone else than admin or moderator, switch published status to pending
if ( if (
this.project.moderation && this.project.moderation &&
this.form.status.value.value === "published" &&
!this.permissions.is_project_administrator && !this.permissions.is_project_administrator &&
!this.permissions.is_project_moderator !this.permissions.is_project_moderator
) { ) {
......
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