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);