Skip to content

Commit

Permalink
fix(项目设置): 缺陷模板编辑和复制权限
Browse files Browse the repository at this point in the history
--bug=1027187 --user=王旭 【项目设置】项目成员有缺陷模版权限,创建缺陷模版报403 https://www.tapd.cn/55049933/s/1386290
  • Loading branch information
WangXu10 committed Jun 26, 2023
1 parent 77279e1 commit 22acb31
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -5,6 +5,7 @@
import io.metersphere.commons.constants.PermissionConstants;
import io.metersphere.dto.CustomFieldTemplateDao;
import io.metersphere.service.CustomFieldTemplateService;
import org.apache.shiro.authz.annotation.Logical;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.web.bind.annotation.*;

Expand All @@ -19,7 +20,7 @@ public class CustomFieldTemplateController {
CustomFieldTemplateService customFieldTemplateService;

@PostMapping("/list")
@RequiresPermissions(PermissionConstants.PROJECT_TEMPLATE_READ_CUSTOM)
@RequiresPermissions(value = {PermissionConstants.PROJECT_TEMPLATE_READ_CUSTOM, PermissionConstants.PROJECT_TEMPLATE_READ_CASE_TEMPLATE, PermissionConstants.PROJECT_TEMPLATE_READ_ISSUE_TEMPLATE}, logical = Logical.OR)
public List<CustomFieldTemplateDao> list(@RequestBody CustomFieldTemplate request) {
return customFieldTemplateService.list(request);
}
Expand Down

0 comments on commit 22acb31

Please sign in to comment.