将业务/系统字典,特定服务,协议ip权限控制add和delete从edit中细分出来
This commit is contained in:
@@ -119,7 +119,7 @@ public class SpecificServiceCfgController extends BaseController {
|
||||
* @param mulitId
|
||||
* @return
|
||||
*/
|
||||
@RequiresPermissions(value={"specific:service:edit","specific:service:view"},logical=Logical.OR)
|
||||
@RequiresPermissions(value={"specific:service:add","specific:service:edit","specific:service:view"},logical=Logical.OR)
|
||||
@RequestMapping(value = { "form" })
|
||||
public String form(SpecificServiceCfg specificServiceCfg, Model model, String doAction) {
|
||||
if(specificServiceCfg!=null&&specificServiceCfg.getSpecServiceId()!=null){
|
||||
@@ -144,7 +144,7 @@ public class SpecificServiceCfgController extends BaseController {
|
||||
* @param redirectAttributes
|
||||
* @return
|
||||
*/
|
||||
@RequiresPermissions("specific:service:edit")
|
||||
@RequiresPermissions(value= {"specific:service:add","specific:service:edit"},logical=Logical.OR)
|
||||
@RequestMapping(value="saveOrUpdate")
|
||||
public String saveOrUpdate(SpecificServiceCfg specificServiceCfg, Model model,
|
||||
RedirectAttributes redirectAttributes,Integer oldId) {
|
||||
@@ -165,7 +165,7 @@ public class SpecificServiceCfgController extends BaseController {
|
||||
* @param mulitId
|
||||
* @return
|
||||
*/
|
||||
@RequiresPermissions("specific:service:edit")
|
||||
@RequiresPermissions("specific:service:del")
|
||||
@RequestMapping(value="delete")
|
||||
public String delete(SpecificServiceCfg specificServiceCfg, RedirectAttributes redirectAttributes, String mulitId){
|
||||
try{
|
||||
|
||||
@@ -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