mirror of
				https://github.com/gyurix1968/guacamole-client.git
				synced 2025-10-30 16:43:22 +00:00 
			
		
		
		
	GUAC-586: Clarify auth result and include data source. Consistently refer to usernames as "username", not "user IDs".
This commit is contained in:
		| @@ -78,7 +78,7 @@ angular.module('navigation').directive('guacUserMenu', [function guacUserMenu() | ||||
|              * | ||||
|              * @type String | ||||
|              */ | ||||
|             $scope.username = authenticationService.getCurrentUserID(); | ||||
|             $scope.username = authenticationService.getCurrentUsername(); | ||||
|              | ||||
|             /** | ||||
|              * The available main pages for the current user. | ||||
|   | ||||
| @@ -156,7 +156,7 @@ angular.module('navigation').factory('userPageService', ['$injector', | ||||
|         PermissionSet.removeConnectionGroupPermission(permissions, PermissionSet.ObjectPermissionType.UPDATE, ConnectionGroup.ROOT_IDENTIFIER); | ||||
|  | ||||
|         // Ignore permission to update self | ||||
|         PermissionSet.removeUserPermission(permissions, PermissionSet.ObjectPermissionType.UPDATE, authenticationService.getCurrentUserID()); | ||||
|         PermissionSet.removeUserPermission(permissions, PermissionSet.ObjectPermissionType.UPDATE, authenticationService.getCurrentUsername()); | ||||
|  | ||||
|         // Determine whether the current user needs access to the user management UI | ||||
|         var canManageUsers = | ||||
| @@ -247,7 +247,7 @@ angular.module('navigation').factory('userPageService', ['$injector', | ||||
|  | ||||
|         // Retrieve current permissions, resolving main pages if possible | ||||
|         // Resolve promise using settings pages derived from permissions | ||||
|         permissionService.getPermissions(authenticationService.getCurrentUserID()) | ||||
|         permissionService.getPermissions(authenticationService.getCurrentUsername()) | ||||
|         .success(function permissionsRetrieved(permissions) { | ||||
|             deferred.resolve(generateSettingsPages(permissions)); | ||||
|         }); | ||||
| @@ -328,7 +328,7 @@ angular.module('navigation').factory('userPageService', ['$injector', | ||||
|         }); | ||||
|  | ||||
|         // Retrieve current permissions, resolving main pages if possible | ||||
|         permissionService.getPermissions(authenticationService.getCurrentUserID()) | ||||
|         permissionService.getPermissions(authenticationService.getCurrentUsername()) | ||||
|         .success(function permissionsRetrieved(retrievedPermissions) { | ||||
|             permissions = retrievedPermissions; | ||||
|             resolveMainPages(); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user