Merge pull request #539 from milanperera/release-2.0.x

Fixed permissions adding issue
4.x.x
Rasika Perera 8 years ago committed by GitHub
commit bb7286c2d5

@ -55,7 +55,7 @@ public class PermissionManagerServiceImpl implements PermissionManagerService {
@Override @Override
public boolean addPermission(Permission permission) throws PermissionManagementException { public boolean addPermission(Permission permission) throws PermissionManagementException {
// adding a permission to the tree // adding a permission to the tree
permission.setPath(PermissionUtils.getAbsolutePermissionPath(permission.getPath())); permission.setPath(permission.getPath());
permissionTree.addPermission(permission); permissionTree.addPermission(permission);
return PermissionUtils.putPermission(permission); return PermissionUtils.putPermission(permission);
} }

Loading…
Cancel
Save