From 98ea97d8901130be97ef0fcbb0b502c2f324da2b Mon Sep 17 00:00:00 2001 From: Milan Perera Date: Wed, 11 Jan 2017 14:41:54 +0530 Subject: [PATCH] Fixed permissions adding issue --- .../mgt/core/permission/mgt/PermissionManagerServiceImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.core/src/main/java/org/wso2/carbon/device/mgt/core/permission/mgt/PermissionManagerServiceImpl.java b/components/device-mgt/org.wso2.carbon.device.mgt.core/src/main/java/org/wso2/carbon/device/mgt/core/permission/mgt/PermissionManagerServiceImpl.java index 1cd85960f0..07865c5095 100644 --- a/components/device-mgt/org.wso2.carbon.device.mgt.core/src/main/java/org/wso2/carbon/device/mgt/core/permission/mgt/PermissionManagerServiceImpl.java +++ b/components/device-mgt/org.wso2.carbon.device.mgt.core/src/main/java/org/wso2/carbon/device/mgt/core/permission/mgt/PermissionManagerServiceImpl.java @@ -55,7 +55,7 @@ public class PermissionManagerServiceImpl implements PermissionManagerService { @Override public boolean addPermission(Permission permission) throws PermissionManagementException { // adding a permission to the tree - permission.setPath(PermissionUtils.getAbsolutePermissionPath(permission.getPath())); + permission.setPath(permission.getPath()); permissionTree.addPermission(permission); return PermissionUtils.putPermission(permission); }