Skip to content

Commit

Permalink
Fix bug when limited user tries to copy contentlet
Browse files Browse the repository at this point in the history
  • Loading branch information
freddyDOTCMS committed Feb 11, 2025
1 parent 216ce44 commit 1247b1e
Showing 1 changed file with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1179,11 +1179,15 @@ private ResolvedPath resolvePath(final String inputPath,
hostsToFound.put(currentHost.getInode(), currentHost);
}
} catch(DotSecurityException e) {

//ignore: If the user lacks permission for this Host, we skip attempting to resolve the Container with it
}

final Host defaultHost = APILocator.getHostAPI().findDefaultHost(user, respectFrontEndEndRoles);
hostsToFound.put(defaultHost.getInode(), defaultHost);
try {
final Host defaultHost = APILocator.getHostAPI().findDefaultHost(user, respectFrontEndEndRoles);
hostsToFound.put(defaultHost.getInode(), defaultHost);
} catch(DotSecurityException e) {
//ignore: If the user lacks permission for this Host, we skip attempting to resolve the Container with it
}

return find(relativePath, hostsToFound, user, live, respectFrontEndEndRoles);
}
Expand Down

0 comments on commit 1247b1e

Please sign in to comment.