From 30a1d92fde4864dd814969951f32c4e451418642 Mon Sep 17 00:00:00 2001 From: Amalka Subasinghe Date: Sat, 26 Jun 2021 13:48:26 +0530 Subject: [PATCH] scope-role-permission refactoring and webapp authorization --- .../service/impl/DeviceManagementConfigServiceImpl.java | 7 ------- 1 file changed, 7 deletions(-) diff --git a/components/device-mgt/io.entgra.carbon.device.mgt.config.api/src/main/java/io/entgra/carbon/device/mgt/config/jaxrs/service/impl/DeviceManagementConfigServiceImpl.java b/components/device-mgt/io.entgra.carbon.device.mgt.config.api/src/main/java/io/entgra/carbon/device/mgt/config/jaxrs/service/impl/DeviceManagementConfigServiceImpl.java index ac9112da314..4f13273e217 100644 --- a/components/device-mgt/io.entgra.carbon.device.mgt.config.api/src/main/java/io/entgra/carbon/device/mgt/config/jaxrs/service/impl/DeviceManagementConfigServiceImpl.java +++ b/components/device-mgt/io.entgra.carbon.device.mgt.config.api/src/main/java/io/entgra/carbon/device/mgt/config/jaxrs/service/impl/DeviceManagementConfigServiceImpl.java @@ -274,16 +274,9 @@ public class DeviceManagementConfigServiceImpl implements DeviceManagementConfig @Path("/permissions") @Produces({MediaType.APPLICATION_JSON}) public Response addPermission(List permissions) { -// PermissionManagerService permissionService = DeviceMgtAPIUtils.getPermissionManagerService(); -// org.wso2.carbon.device.mgt.common.permission.mgt.Permission permission = new org -// .wso2.carbon.device.mgt.common.permission.mgt.Permission(); - for (String path : permissions) { -// permission.setPath(path); -// permission.setUrl(path); try { PermissionUtils.putPermission(path); -// permissionService.addPermission(permission); } catch (PermissionManagementException e) { String msg = "Error occurred adding permission"; log.error(msg, e);