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:
Sara Aspery
2019-09-09 20:57:03 +01:00

View File

@@ -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
// 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"));
if (!parentReadable) continue;
//TODO:permissions
var parentReadable = true;
// Get evaluated properties.
item = Evaluator.run(node);
if (item !== null)
@@ -282,7 +282,6 @@ function rm_doclist_main()
{
locationNode = item.isLink ? item.linkedNode : item.node;
// Ensure we have Read permissions on the destination on the link object
if (!locationNode.hasPermission("ReadRecords")) continue;
location = Common.getLocation(locationNode, parsedArgs.libraryRoot);
// Parent node
if (parentReadable)