Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
Only allow editing task if task is OPEN
天舟de738c6f45ed
diff --git a/frontend/src/views/TaskDetail.vue b/frontend/src/views/TaskDetail.vueindex 25b26aa47c..cde67526eb 100644--- a/frontend/src/views/TaskDetail.vue+++ b/frontend/src/views/TaskDetail.vue@@ -553,15 +553,16 @@ export default {// - Anyone can comment// - Anyone can subscribe / unsubscribeconst allowEditFields = computed(() => {- // For now, we allow creator and assignee to update the field any time.- // This may cause potential issue that the creator might change some of the- // fields after the assignee starts the work.- // In the future, we could provide options to enforce more strict rules+ // For now, we allow creator and assignee to update the field any time+ // when the task is OPEN. This may cause potential issue that the creator+ // might change some of the fields after the assignee follows the previous info+ // to deal the task. In the future, we could provide options to enforce more strict rules// e.g. disallow changing a particular field at a particular stage by a particular role.return (state.new ||- currentUser.value.id == (state.task as Task).assignee?.id ||- currentUser.value.id == (state.task as Task).creator.id+ ((state.task as Task).status == "OPEN" &&+ (currentUser.value.id == (state.task as Task).assignee?.id ||+ currentUser.value.id == (state.task as Task).creator.id)));});