diff --git a/backend/src/main/java/io/metersphere/base/mapper/ext/ExtApiTestCaseMapper.xml b/backend/src/main/java/io/metersphere/base/mapper/ext/ExtApiTestCaseMapper.xml
index 10dd69c9bb..776a1096b4 100644
--- a/backend/src/main/java/io/metersphere/base/mapper/ext/ExtApiTestCaseMapper.xml
+++ b/backend/src/main/java/io/metersphere/base/mapper/ext/ExtApiTestCaseMapper.xml
@@ -320,7 +320,7 @@
LEFT JOIN api_definition_exec_result t2 ON t1.id = t2.resource_id
LEFT JOIN user deleteUser ON t1.delete_user_id = deleteUser.id
LEFT JOIN api_definition a on t1.api_definition_id = a.id
- LEFT JOIN project project ON t1.project_id = project.id
+ LEFT JOIN project ON t1.project_id = project.id
WHERE 1=1
and a.protocol = #{request.protocol}
@@ -335,6 +335,9 @@
+
+ AND project.workspace_id = #{request.workspaceId}
+
and t1.project_id = #{request.projectId}
diff --git a/backend/src/main/java/io/metersphere/base/mapper/ext/ExtIssuesMapper.xml b/backend/src/main/java/io/metersphere/base/mapper/ext/ExtIssuesMapper.xml
index 20c8ece727..30c4e39615 100644
--- a/backend/src/main/java/io/metersphere/base/mapper/ext/ExtIssuesMapper.xml
+++ b/backend/src/main/java/io/metersphere/base/mapper/ext/ExtIssuesMapper.xml
@@ -18,6 +18,10 @@
issues.creator,issues.resource_id,issues.platform_status,
issues.lastmodify
from issues
+
+ left join
+ project on issues.project_id = project.id
+
and (issues.platform_status != 'delete' or issues.platform_status is NULL)
@@ -66,7 +70,9 @@
or issues.num LIKE CONCAT('%', #{request.name}, '%')
)
-
+
+ AND project.workspace_id = #{request.workspaceId}
+
and issues.project_id = #{request.projectId}
diff --git a/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestCaseMapper.xml b/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestCaseMapper.xml
index 9298dde217..5668169fe6 100644
--- a/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestCaseMapper.xml
+++ b/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestCaseMapper.xml
@@ -180,7 +180,7 @@
from test_case left join user u on test_case.create_user=u.id
left join user deleteUser on test_case.delete_user_id=deleteUser.id
- left join project project on test_case.project_id = project.id
+ left join project on test_case.project_id = project.id
@@ -384,6 +384,9 @@
#{nodeId}
+
+ AND project.workspace_id = #{request.workspaceId}
+
and test_case.project_id = #{request.projectId}
diff --git a/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestCaseReviewMapper.xml b/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestCaseReviewMapper.xml
index c69bcfbba5..1f86490a8a 100644
--- a/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestCaseReviewMapper.xml
+++ b/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestCaseReviewMapper.xml
@@ -53,6 +53,9 @@
and test_case_review.id in (select test_case_review_users.review_id from test_case_review_users where test_case_review_users.user_id = #{request.reviewerId})
+
+ AND project.workspace_id = #{request.workspaceId}
+
and test_case_review.project_id = #{request.projectId}
diff --git a/frontend/src/business/components/common/head/HeaderTopMenus.vue b/frontend/src/business/components/common/head/HeaderTopMenus.vue
index c0f51f98ca..d68a1dfc9d 100644
--- a/frontend/src/business/components/common/head/HeaderTopMenus.vue
+++ b/frontend/src/business/components/common/head/HeaderTopMenus.vue
@@ -8,7 +8,7 @@
@select="handleSelect"
:key="menuKey"
router>
-
{{ $t('commons.my_workstation') }}