mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
RM-1424 (Holds the user has read-only permission for are displayed in Add to Hold dialog)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@72241 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -218,7 +218,8 @@ public class HoldServiceImpl extends ServiceBaseImpl
|
||||
for (ChildAssociationRef holdAssoc : holdsAssocs)
|
||||
{
|
||||
NodeRef hold = holdAssoc.getChildRef();
|
||||
if (isHold(hold))
|
||||
boolean hasPermissionOnHold = (permissionService.hasPermission(hold, RMPermissionModel.FILING) == AccessStatus.ALLOWED);
|
||||
if (isHold(hold) && hasPermissionOnHold)
|
||||
{
|
||||
// add to list of holds
|
||||
holds.add(hold);
|
||||
|
Reference in New Issue
Block a user