将业务/系统字典,特定服务,协议ip权限控制add和delete从edit中细分出来
This commit is contained in:
@@ -7,6 +7,7 @@ import java.util.Map;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import org.apache.shiro.authz.annotation.Logical;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.ui.Model;
|
||||
@@ -67,7 +68,7 @@ public class SpecificServiceHostCfgController extends BaseController {
|
||||
* @param model
|
||||
* @return
|
||||
*/
|
||||
@RequiresPermissions("specific:serviceIp:edit")
|
||||
@RequiresPermissions(value= {"specific:serviceIp:add","specific:serviceIp:edit"},logical=Logical.OR)
|
||||
@RequestMapping(value = "form")
|
||||
public String form(SpecificServiceHostCfg specificServiceHostCfg, HttpServletRequest request, HttpServletResponse response, Model model) {
|
||||
//查询协议id供下拉选择
|
||||
@@ -84,7 +85,7 @@ public class SpecificServiceHostCfgController extends BaseController {
|
||||
* @param mulitId
|
||||
* @return
|
||||
*/
|
||||
@RequiresPermissions("specific:serviceIp:edit")
|
||||
@RequiresPermissions(value= {"specific:serviceIp:add","specific:serviceIp:edit"},logical=Logical.OR)
|
||||
@RequestMapping(value = "saveOrUpdate")
|
||||
public String saveOrUpdate(SpecificServiceHostCfg specificServiceHostCfg,Model model,RedirectAttributes redirectAttributes){
|
||||
try {
|
||||
@@ -103,7 +104,7 @@ public class SpecificServiceHostCfgController extends BaseController {
|
||||
* @param mulitId
|
||||
* @return
|
||||
*/
|
||||
@RequiresPermissions("specific:serviceIp:edit")
|
||||
@RequiresPermissions("specific:serviceIp:del")
|
||||
@RequestMapping(value="delete")
|
||||
public String delete(SpecificServiceHostCfg specificServiceHostCfg, RedirectAttributes redirectAttributes, String mulitId){
|
||||
try{
|
||||
|
||||
Reference in New Issue
Block a user