fix: 修复Jenkins执行测试时由于权限不够导致不能正常执行的问题
--bug=1027600 --user=刘瑞斌 [系统设置]github#25370jenkins调用MS测试计划,在测试计划执行成功率为100%的情况下,jenkins job被MS置为构建失败,需修改 https://www.tapd.cn/55049933/s/1390457
This commit is contained in:
parent
fef406925c
commit
ef011c65b4
|
@ -14,6 +14,7 @@ import io.metersphere.log.annotation.MsAuditLog;
|
||||||
import io.metersphere.notice.domain.MailInfo;
|
import io.metersphere.notice.domain.MailInfo;
|
||||||
import io.metersphere.service.BaseUserService;
|
import io.metersphere.service.BaseUserService;
|
||||||
import io.metersphere.service.SystemParameterService;
|
import io.metersphere.service.SystemParameterService;
|
||||||
|
import org.apache.shiro.authz.annotation.Logical;
|
||||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||||
import org.springframework.core.env.Environment;
|
import org.springframework.core.env.Environment;
|
||||||
import org.springframework.web.bind.annotation.*;
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
@ -68,7 +69,13 @@ public class SystemParameterController {
|
||||||
}
|
}
|
||||||
|
|
||||||
@GetMapping("/base/info")
|
@GetMapping("/base/info")
|
||||||
@RequiresPermissions(PermissionConstants.SYSTEM_SETTING_READ)
|
@RequiresPermissions(value = {PermissionConstants.SYSTEM_SETTING_READ,
|
||||||
|
PermissionConstants.PROJECT_TRACK_PLAN_READ_RUN,
|
||||||
|
PermissionConstants.PROJECT_API_SCENARIO_READ_RUN,
|
||||||
|
PermissionConstants.PROJECT_API_DEFINITION_READ_RUN,
|
||||||
|
PermissionConstants.PROJECT_PERFORMANCE_TEST_READ_RUN,
|
||||||
|
PermissionConstants.PROJECT_UI_SCENARIO_READ_RUN
|
||||||
|
}, logical = Logical.OR)
|
||||||
public BaseSystemConfigDTO getBaseInfo() {
|
public BaseSystemConfigDTO getBaseInfo() {
|
||||||
return systemParameterService.getBaseInfo();
|
return systemParameterService.getBaseInfo();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue