mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
MNT-16852: First pass at Write Properties permission handling
This commit is contained in:
@@ -100,6 +100,13 @@ public class RMPermissionServiceImpl extends PermissionServiceImpl
|
||||
{
|
||||
return super.hasPermission(nodeRef, RMPermissionModel.FILE_RECORDS);
|
||||
}
|
||||
// Add WRITE_PROPERTIES check in for MNT-16852.
|
||||
else if (AccessStatus.DENIED.equals(acs) &&
|
||||
PermissionService.WRITE_PROPERTIES.equals(perm) &&
|
||||
nodeService.hasAspect(nodeRef, RecordsManagementModel.ASPECT_FILE_PLAN_COMPONENT))
|
||||
{
|
||||
return super.hasPermission(nodeRef, RMPermissionModel.EDIT_RECORD_METADATA);
|
||||
}
|
||||
|
||||
return acs;
|
||||
}
|
||||
|
Reference in New Issue
Block a user