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:
Kevin Roast
2006-01-24 15:31:33 +00:00
parent b13edaafba
commit 43640326e5
4 changed files with 16 additions and 6 deletions

View File

@@ -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;
}