Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
feat(frontend): allow issue creator to re-assign issue (#2264)
Liu Jic81c9e9a5ca7
diff --git a/frontend/src/components/Issue/IssueSidebar.vue b/frontend/src/components/Issue/IssueSidebar.vueindex 81687b442e..66422fe0b5 100644--- a/frontend/src/components/Issue/IssueSidebar.vue+++ b/frontend/src/components/Issue/IssueSidebar.vue@@ -466,10 +466,6 @@ const allowEditAssignee = computed(() => {if (create.value) {return true;}- // We allow the current assignee or DBA to re-assign the issue.- // Though only DBA can be assigned to the issue, the current- // assignee might not have DBA role in case its role is revoked after- // being assigned to the issue.const issueEntity = issue.value as Issue;if (issueEntity.id === ONBOARDING_ISSUE_ID) {return false;@@ -477,6 +473,14 @@ const allowEditAssignee = computed(() => {if (issueEntity.status !== "OPEN") {return false;}++ // Who can re-assign the issue?+ // - The issue creator+ // - The current assignee+ // - Workspace owners and DBAs (they always have the highest privileges)+ if (currentUser.value.id === issueEntity.creator.id) {+ return true;+ }if (currentUser.value.id === issueEntity.assignee.id) {return true;}