mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
Certain actions (that modify the Person object) now hidden from the Guest user in the web-client
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2186 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -32,6 +32,7 @@ import org.alfresco.filesys.server.filesys.DiskSharedDevice;
|
||||
import org.alfresco.filesys.smb.server.repo.ContentContext;
|
||||
import org.alfresco.filesys.smb.server.repo.ContentDiskInterface;
|
||||
import org.alfresco.model.ContentModel;
|
||||
import org.alfresco.repo.security.permissions.AccessDeniedException;
|
||||
import org.alfresco.service.cmr.repository.InvalidNodeRefException;
|
||||
import org.alfresco.service.cmr.repository.NodeRef;
|
||||
import org.alfresco.service.cmr.repository.NodeService;
|
||||
@@ -258,7 +259,14 @@ public class NavigationBean
|
||||
if (node.hasAspect(ContentModel.ASPECT_TEMPLATABLE))
|
||||
{
|
||||
NodeRef templateRef = (NodeRef)node.getProperties().get(ContentModel.PROP_TEMPLATE);
|
||||
templateView = (templateRef != null && this.nodeService.exists(templateRef));
|
||||
try
|
||||
{
|
||||
templateView = (templateRef != null && this.nodeService.exists(templateRef));
|
||||
}
|
||||
catch (AccessDeniedException err)
|
||||
{
|
||||
// default to false if no access to template
|
||||
}
|
||||
}
|
||||
return templateView;
|
||||
}
|
||||
|
Reference in New Issue
Block a user