mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
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:
@@ -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";
|
||||||
|
Reference in New Issue
Block a user