Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

Only allow change assigne if Task is still open

天舟5fc477ef5bff
diff --git a/frontend/src/views/TaskSidebar.vue b/frontend/src/views/TaskSidebar.vue
index 01d7f95281..99288f48e9 100644
--- a/frontend/src/views/TaskSidebar.vue
+++ b/frontend/src/views/TaskSidebar.vue
@@ -224,9 +224,10 @@ export default {
// being assigned to the task.
return (
props.new ||
- currentUser.value.id == props.task.assignee?.id ||
- currentUser.value.role == "DBA" ||
- currentUser.value.role == "OWNER"
+ (props.task.status == "OPEN" &&
+ (currentUser.value.id == props.task.assignee?.id ||
+ currentUser.value.role == "DBA" ||
+ currentUser.value.role == "OWNER"))
);
});