diff --git a/naming/src/main/java/com/alibaba/nacos/naming/controllers/v3/InstanceControllerV3.java b/naming/src/main/java/com/alibaba/nacos/naming/controllers/v3/InstanceControllerV3.java index f3f5a13a42..732daff6f6 100644 --- a/naming/src/main/java/com/alibaba/nacos/naming/controllers/v3/InstanceControllerV3.java +++ b/naming/src/main/java/com/alibaba/nacos/naming/controllers/v3/InstanceControllerV3.java @@ -261,7 +261,7 @@ public Result partialUpdateInstance(InstanceForm instanceForm) throws Ex @GetMapping("/list") @TpsControl(pointName = "NamingServiceSubscribe", name = "HttpNamingServiceSubscribe") @ExtractorManager.Extractor(httpExtractor = NamingInstanceListHttpParamExtractor.class) - @Secured(resource = UtilsAndCommons.SERVICE_CONTROLLER_V3_ADMIN_PATH, action = ActionTypes.READ, apiType = ApiType.ADMIN_API) + @Secured(resource = UtilsAndCommons.INSTANCE_CONTROLLER_V3_ADMIN_PATH, action = ActionTypes.READ, apiType = ApiType.ADMIN_API) public Result list(InstanceListForm instanceListForm) throws NacosApiException { instanceListForm.validate(); String compositeServiceName = NamingUtils.getGroupedName(instanceListForm.getServiceName(), diff --git a/naming/src/main/java/com/alibaba/nacos/naming/controllers/v3/OperatorControllerV3.java b/naming/src/main/java/com/alibaba/nacos/naming/controllers/v3/OperatorControllerV3.java index 5fc72495a5..7c1af20422 100644 --- a/naming/src/main/java/com/alibaba/nacos/naming/controllers/v3/OperatorControllerV3.java +++ b/naming/src/main/java/com/alibaba/nacos/naming/controllers/v3/OperatorControllerV3.java @@ -58,7 +58,7 @@ public OperatorControllerV3(Operator operatorV2Impl) { * Get switch information. */ @GetMapping("/switches") - @Secured(resource = UtilsAndCommons.INSTANCE_CONTROLLER_V3_ADMIN_PATH, action = ActionTypes.READ, apiType = ApiType.ADMIN_API) + @Secured(resource = UtilsAndCommons.OPERATOR_CONTROLLER_V3_ADMIN_PATH, action = ActionTypes.READ, apiType = ApiType.ADMIN_API) public Result switches() { return Result.success(operatorV2Impl.switches()); } @@ -67,7 +67,7 @@ public Result switches() { * Update switch information. */ @PutMapping("/switches") - @Secured(resource = UtilsAndCommons.INSTANCE_CONTROLLER_V3_ADMIN_PATH, action = ActionTypes.WRITE, apiType = ApiType.ADMIN_API) + @Secured(resource = UtilsAndCommons.OPERATOR_CONTROLLER_V3_ADMIN_PATH, action = ActionTypes.WRITE, apiType = ApiType.ADMIN_API) public Result updateSwitch(UpdateSwitchForm updateSwitchForm) throws Exception { updateSwitchForm.validate(); try {