. Fixes for AWC-538 and AWC-540

- Handling of removal of permissions on user shortcut objects while the user is still logged in to the system

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2429 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Kevin Roast
2006-02-17 12:51:46 +00:00
parent f23a841505
commit 701a89774c

View File

@@ -342,6 +342,11 @@ public class UserShortcutsBean
{
if (permissionService.hasPermission(selectedNode.getNodeRef(), PermissionService.READ) == AccessStatus.ALLOWED)
{
if (nodeService.exists(selectedNode.getNodeRef()) == false)
{
throw new InvalidNodeRefException(selectedNode.getNodeRef());
}
DictionaryService dd = Repository.getServiceRegistry(FacesContext.getCurrentInstance()).getDictionaryService();
if (dd.isSubClass(selectedNode.getType(), ContentModel.TYPE_FOLDER))
{