RM-1029: Trashcan page in admin console opened with Internal Server Error

- permissionServiceImpl#hasPermission method was updated. Now we check a node  for
existence before nodeService.hasAspect method invocation that checks a node for
ASPECT_FILE_PLAN_COMPONENT aspect.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/BRANCHES/V2.0@56244 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Pavel Yurkevich
2013-10-02 11:20:07 +00:00
parent add6400535
commit 93991e8265

View File

@@ -1057,6 +1057,7 @@ public class PermissionServiceImpl extends AbstractLifecycleBean implements Perm
{ {
String result = perm; String result = perm;
if ("Read".equals(perm) == true && if ("Read".equals(perm) == true &&
nodeService.exists(nodeRef) &&
nodeService.hasAspect(nodeRef, RecordsManagementModel.ASPECT_FILE_PLAN_COMPONENT) == true) nodeService.hasAspect(nodeRef, RecordsManagementModel.ASPECT_FILE_PLAN_COMPONENT) == true)
{ {
result = "ReadRecords"; result = "ReadRecords";