mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 05:07:41 +00:00
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:
@@ -289,9 +289,12 @@ angular.module('manage').directive('connectionPermissionEditor', ['$injector',
|
||||
// their parents
|
||||
child = copyReadable(child, flags);
|
||||
|
||||
// Include child only if they are explicitly readable or
|
||||
// they have explicitly readable descendants
|
||||
if ((child.children && child.children.length) || isReadable(child, flags))
|
||||
// Include child only if they are explicitly readable, they
|
||||
// have explicitly readable descendants, or their parent is
|
||||
// readable (and thus all children are relevant)
|
||||
if ((child.children && child.children.length)
|
||||
|| isReadable(item, flags)
|
||||
|| isReadable(child, flags))
|
||||
children.push(child);
|
||||
|
||||
});
|
||||
|
Reference in New Issue
Block a user