GUACAMOLE-360: Order pages correctly; remove unused variable. Project: http://git-wip-us.apache.org/repos/asf/guacamole-client/repo Commit: http://git-wip-us.apache.org/repos/asf/guacamole-client/commit/c9975f26 Tree: http://git-wip-us.apache.org/repos/asf/guacamole-client/tree/c9975f26 Diff: http://git-wip-us.apache.org/repos/asf/guacamole-client/diff/c9975f26
Branch: refs/heads/master Commit: c9975f26939726b6908461effaa7cb9805ccd5c4 Parents: ef7e28d Author: Nick Couchman <[email protected]> Authored: Tue Jun 19 06:11:09 2018 -0400 Committer: Nick Couchman <[email protected]> Committed: Tue Jun 19 06:11:09 2018 -0400 ---------------------------------------------------------------------- .../webapp/app/navigation/services/userPageService.js | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/guacamole-client/blob/c9975f26/guacamole/src/main/webapp/app/navigation/services/userPageService.js ---------------------------------------------------------------------- diff --git a/guacamole/src/main/webapp/app/navigation/services/userPageService.js b/guacamole/src/main/webapp/app/navigation/services/userPageService.js index 7bdf654..bd401da 100644 --- a/guacamole/src/main/webapp/app/navigation/services/userPageService.js +++ b/guacamole/src/main/webapp/app/navigation/services/userPageService.js @@ -196,7 +196,6 @@ angular.module('navigation').factory('userPageService', ['$injector', var canManageUsers = []; var canManageConnections = []; var canViewConnectionRecords = []; - var canManageSessions = []; // Inspect the contents of each provided permission set angular.forEach(authenticationService.getAvailableDataSources(), function inspectPermissions(dataSource) { @@ -269,6 +268,12 @@ angular.module('navigation').factory('userPageService', ['$injector', }); + // Add link to Session management (always accessible) + pages.push(new PageDefinition({ + name : 'USER_MENU.ACTION_MANAGE_SESSIONS', + url : '/settings/sessions' + })); + // If user can manage connections, add links for connection management pages angular.forEach(canViewConnectionRecords, function addConnectionHistoryLink(dataSource) { pages.push(new PageDefinition({ @@ -305,12 +310,6 @@ angular.module('navigation').factory('userPageService', ['$injector', url : '/settings/preferences' })); - // Add link to Session management (always accessible) - pages.push(new PageDefinition({ - name : 'USER_MENU.ACTION_MANAGE_SESSIONS', - url : '/settings/sessions' - })); - return pages; };
