GUACAMOLE-220: Include children of readable items within connection permission editor, as they are likely relevant to the administrative task at hand.

This commit is contained in:
Michael Jumper
2018-07-21 13:59:52 -07:00
parent 62e58eaf9f
commit e03251f78c

View File

@@ -289,9 +289,12 @@ angular.module('manage').directive('connectionPermissionEditor', ['$injector',
// their parents // their parents
child = copyReadable(child, flags); child = copyReadable(child, flags);
// Include child only if they are explicitly readable or // Include child only if they are explicitly readable, they
// they have explicitly readable descendants // have explicitly readable descendants, or their parent is
if ((child.children && child.children.length) || isReadable(child, flags)) // readable (and thus all children are relevant)
if ((child.children && child.children.length)
|| isReadable(item, flags)
|| isReadable(child, flags))
children.push(child); children.push(child);
}); });