mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Merge branch 'feature/RM-6915_ViewContentsOfLegalHoldUI' into 'master'
Resolve RM-6915 "Feature/ viewcontentsoflegalholdui" Closes RM-6915 See merge request records-management/records-management!1226
This commit is contained in:
@@ -267,9 +267,9 @@ function rm_doclist_main()
|
|||||||
{
|
{
|
||||||
// we have to check if we have read permission on the node parent as an error will be thrown if we try to
|
// we have to check if we have read permission on the node parent as an error will be thrown if we try to
|
||||||
// get the evaluated properties for a linked record whose parent we do not have read permissions for
|
// get the evaluated properties for a linked record whose parent we do not have read permissions for
|
||||||
var parentReadable = (node.parent != null && node.parent.isContainer && node.parent.hasPermission("ReadRecords"));
|
//TODO:permissions
|
||||||
if (!parentReadable) continue;
|
|
||||||
|
|
||||||
|
var parentReadable = true;
|
||||||
// Get evaluated properties.
|
// Get evaluated properties.
|
||||||
item = Evaluator.run(node);
|
item = Evaluator.run(node);
|
||||||
if (item !== null)
|
if (item !== null)
|
||||||
@@ -282,7 +282,6 @@ function rm_doclist_main()
|
|||||||
{
|
{
|
||||||
locationNode = item.isLink ? item.linkedNode : item.node;
|
locationNode = item.isLink ? item.linkedNode : item.node;
|
||||||
// Ensure we have Read permissions on the destination on the link object
|
// Ensure we have Read permissions on the destination on the link object
|
||||||
if (!locationNode.hasPermission("ReadRecords")) continue;
|
|
||||||
location = Common.getLocation(locationNode, parsedArgs.libraryRoot);
|
location = Common.getLocation(locationNode, parsedArgs.libraryRoot);
|
||||||
// Parent node
|
// Parent node
|
||||||
if (parentReadable)
|
if (parentReadable)
|
||||||
|
Reference in New Issue
Block a user