Skip to content

Commit

Permalink
#28838 include in 23.10.24 LTS
Browse files Browse the repository at this point in the history
  • Loading branch information
erickgonzalez committed Aug 14, 2024
1 parent ae57cde commit 0690879
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
3 changes: 2 additions & 1 deletion dotCMS/hotfix_tracking.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,4 +138,5 @@ This maintenance release includes the following code fixes:
131. https://github.com/dotCMS/core/issues/27816 : Content Displacement Bug when Editing Template #27816
132. https://github.com/dotCMS/core/issues/28163 : 'alive' and 'startup' healthcheck APIs return 503 on seemingly healthy app #28163
133. https://github.com/dotCMS/core/issues/26546 : Enable better logging for getPageByPath in HTMLPageAssetAPIImpl.java #26546
134. https://github.com/dotCMS/core/issues/28366 : Uploaded images in another language than the default one do not inherit permissions #28366
134. https://github.com/dotCMS/core/issues/28366 : Uploaded images in another language than the default one do not inherit permissions #28366
135. https://github.com/dotCMS/core/issues/28838 : Category Child Permissions Not Loading #28838
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ private void addPermissionToRoleList(Permissionable perm, Permission p, Map<Stri
permParent = InodeUtils.getInode(assetInode);
}

if(permParent !=null || InodeUtils.isSet(permParent.getPermissionId())){
if(permParent !=null && InodeUtils.isSet(permParent.getPermissionId())){
inodeCache.put(permParent.getPermissionId(), permParent);

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,9 @@ public static Inode getInode(String x, Class c) {
if(c.equals(Folder.class)){
throw new DotStateException("Folder mapping was deleted from hibernate files");
}
if (c.equals(Category.class)){
throw new DotStateException("Category mapping was deleted from hibernate files");
}



Expand Down
2 changes: 2 additions & 0 deletions dotCMS/src/main/java/com/dotmarketing/util/InodeUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,8 @@ public static Inode getInode(final String inode) throws DotDataException, DotSec
}else if ( shortOpt.isPresent() && ShortType.FOLDER == shortOpt.get().subType ) {
//Folder no longer inherit from inode, returning an empty inode
inodeObj = new Inode();
} else if ( shortOpt.isPresent() && ShortType.CATEGORY == shortOpt.get().subType ) {
inodeObj = APILocator.getCategoryAPI().find(inode, APILocator.systemUser(), false);
} else {
inodeObj = InodeFactory.getInode(inode, Inode.class);
}
Expand Down

0 comments on commit 0690879

Please sign in to comment.