fix(测试跟踪): 公共用例库选择修改用例责任人后,新的责任人仍不可编辑和删除该用例

--bug=1008907 --user=王孝刚 【公共用例库】-选择修改用例责任人后,新的责任人仍不可编辑和删除该用例
https://www.tapd.cn/55049933/s/1081648
This commit is contained in:
wxg0103 2021-12-16 15:13:18 +08:00 committed by 刘瑞斌
parent e56ac02942
commit 3b53f6a697
1 changed files with 4 additions and 1 deletions

View File

@ -758,7 +758,10 @@ export default {
},
isPublic(testCase) {
if (testCase.maintainer !== getCurrentUserId() || testCase.createUser !== getCurrentUserId()) {
if (testCase.maintainer && testCase.maintainer !== getCurrentUserId()) {
return true;
}
if (testCase.createUser && testCase.createUser !== getCurrentUserId()) {
return true;
} else {
return false;