mirror of
				https://github.com/gyurix1968/guacamole-client.git
				synced 2025-10-31 00:53:21 +00:00 
			
		
		
		
	GUACAMOLE-360: Order pages correctly; remove unused variable.
This commit is contained in:
		| @@ -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; | ||||
|     }; | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user