diff --git a/dotCMS/src/main/java/com/dotmarketing/portlets/htmlpageasset/business/render/HTMLPageAssetRenderedAPIImpl.java b/dotCMS/src/main/java/com/dotmarketing/portlets/htmlpageasset/business/render/HTMLPageAssetRenderedAPIImpl.java index e38951e44635..a1219b8d3f82 100644 --- a/dotCMS/src/main/java/com/dotmarketing/portlets/htmlpageasset/business/render/HTMLPageAssetRenderedAPIImpl.java +++ b/dotCMS/src/main/java/com/dotmarketing/portlets/htmlpageasset/business/render/HTMLPageAssetRenderedAPIImpl.java @@ -377,9 +377,9 @@ private void checkPagePermission(final PageContext context, final IHTMLPage html context.getPageMode().respectAnonPerms); if (!doesUserHavePermission) { - final String message = String.format("User: %s does not have permissions %s for object %s", + final String message = String.format("User: %s does not have permissions %s for page %s", context.getUser(), - PermissionLevel.READ, htmlPageAsset); + PermissionLevel.READ, htmlPageAsset.getURI()); throw new DotSecurityException(message); } }