fix: 修改系统参数只允许系统管理员操作

This commit is contained in:
Captain.B 2020-07-21 10:26:51 +08:00
parent a2022f8cf0
commit 4262a1833a
1 changed files with 4 additions and 0 deletions

View File

@ -2,15 +2,19 @@ package io.metersphere.controller;
import io.metersphere.base.domain.SystemParameter;
import io.metersphere.commons.constants.ParamConstants;
import io.metersphere.commons.constants.RoleConstants;
import io.metersphere.ldap.domain.LdapInfo;
import io.metersphere.service.SystemParameterService;
import org.apache.shiro.authz.annotation.RequiresRoles;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import java.util.HashMap;
import java.util.List;
@RestController
@RequestMapping(value = "/system")
@RequiresRoles(RoleConstants.ADMIN)
public class SystemParameterController {
@Resource
private SystemParameterService SystemParameterService;