mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 21:27:40 +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 canManageUsers = [];
|
||||||
var canManageConnections = [];
|
var canManageConnections = [];
|
||||||
var canViewConnectionRecords = [];
|
var canViewConnectionRecords = [];
|
||||||
var canManageSessions = [];
|
|
||||||
|
|
||||||
// Inspect the contents of each provided permission set
|
// Inspect the contents of each provided permission set
|
||||||
angular.forEach(authenticationService.getAvailableDataSources(), function inspectPermissions(dataSource) {
|
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
|
// If user can manage connections, add links for connection management pages
|
||||||
angular.forEach(canViewConnectionRecords, function addConnectionHistoryLink(dataSource) {
|
angular.forEach(canViewConnectionRecords, function addConnectionHistoryLink(dataSource) {
|
||||||
pages.push(new PageDefinition({
|
pages.push(new PageDefinition({
|
||||||
@@ -305,12 +310,6 @@ angular.module('navigation').factory('userPageService', ['$injector',
|
|||||||
url : '/settings/preferences'
|
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;
|
return pages;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user