fix(测试计划): 新建关联按钮权限控制问题
--bug=1046624 --user=宋昌昌 【测试计划】用户没有测试计划的执行权限-进入计划详情-功能/接口/场景用例列表-批量勾选用例-不应该显示「新建缺陷」「关联缺陷」 https://www.tapd.cn/55049933/s/1580889
This commit is contained in:
parent
cd63f9dcb8
commit
8854cba5ff
|
@ -146,7 +146,7 @@ public class BugController {
|
|||
}
|
||||
|
||||
@GetMapping("/sync/{projectId}")
|
||||
@Operation(summary = "缺陷管理-列表-同步存量缺陷")
|
||||
@Operation(summary = "缺陷管理-列表-同步缺陷")
|
||||
@RequiresPermissions(PermissionConstants.PROJECT_BUG_UPDATE)
|
||||
@CheckOwner(resourceId = "#projectId", resourceType = "project")
|
||||
public void sync(@PathVariable String projectId) {
|
||||
|
@ -154,7 +154,7 @@ public class BugController {
|
|||
}
|
||||
|
||||
@PostMapping("/sync/all")
|
||||
@Operation(summary = "缺陷管理-列表-同步全量缺陷")
|
||||
@Operation(summary = "缺陷管理-列表-同步缺陷(区间)")
|
||||
@RequiresPermissions(PermissionConstants.PROJECT_BUG_UPDATE)
|
||||
@CheckOwner(resourceId = "#request.getProjectId()", resourceType = "project")
|
||||
public void syncAll(@RequestBody BugSyncRequest request) {
|
||||
|
|
|
@ -15,7 +15,8 @@
|
|||
|
||||
<select id="list" resultMap="BugDTO">
|
||||
select b.id, b.num, b.title, b.handle_user, b.create_user, b.create_time, b.update_user, b.update_time, b.delete_user, b.delete_time,
|
||||
b.project_id, b.template_id, b.platform, b.status, b.tags from bug b
|
||||
b.project_id, b.template_id, b.platform, b.status, b.tags, bc.description from bug b
|
||||
left join bug_content bc on b.id = bc.bug_id
|
||||
<include refid="queryWhereCondition"/>
|
||||
<if test="sort != null and sort != ''">
|
||||
order by ${sort}
|
||||
|
|
|
@ -71,7 +71,7 @@ public class BugSyncService {
|
|||
}
|
||||
|
||||
/**
|
||||
* 同步存量缺陷
|
||||
* 同步缺陷
|
||||
* @param projectId 项目ID
|
||||
*/
|
||||
public void syncBugs(String projectId, String currentUser, String language, String triggerMode) {
|
||||
|
|
|
@ -463,7 +463,7 @@
|
|||
{
|
||||
label: 'caseManagement.featureCase.linkDefect',
|
||||
eventTag: 'linkDefect',
|
||||
permission: ['PROJECT_BUG:READ'],
|
||||
permission: ['PROJECT_TEST_PLAN:READ+EXECUTE', 'PROJECT_BUG:READ'],
|
||||
},
|
||||
]
|
||||
: [];
|
||||
|
@ -494,7 +494,7 @@
|
|||
{
|
||||
label: 'testPlan.featureCase.noBugDataNewBug',
|
||||
eventTag: 'newBug',
|
||||
permission: ['PROJECT_BUG:READ+ADD'],
|
||||
permission: ['PROJECT_TEST_PLAN:READ+EXECUTE', 'PROJECT_BUG:READ+ADD'],
|
||||
},
|
||||
],
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue