mirror of
				https://github.com/gyurix1968/guacamole-client.git
				synced 2025-10-31 17:13:21 +00:00 
			
		
		
		
	GUAC-800: Display user attributes within user editor.
This commit is contained in:
		| @@ -39,6 +39,7 @@ angular.module('manage').controller('manageUserController', ['$scope', '$injecto | ||||
|     var guacNotification       = $injector.get('guacNotification'); | ||||
|     var userService            = $injector.get('userService'); | ||||
|     var permissionService      = $injector.get('permissionService'); | ||||
|     var schemaService          = $injector.get('schemaService'); | ||||
|  | ||||
|     /** | ||||
|      * An action to be provided along with the object sent to showStatus which | ||||
| @@ -102,6 +103,14 @@ angular.module('manage').controller('manageUserController', ['$scope', '$injecto | ||||
|      */ | ||||
|     $scope.permissions = null; | ||||
|  | ||||
|     /** | ||||
|      * All available user attributes. This is only the set of attribute | ||||
|      * definitions, not attribute values. | ||||
|      * | ||||
|      * @type Field[] | ||||
|      */ | ||||
|     $scope.attributes = null; | ||||
|  | ||||
|     /** | ||||
|      * Returns whether critical data has completed being loaded. | ||||
|      * | ||||
| @@ -115,11 +124,17 @@ angular.module('manage').controller('manageUserController', ['$scope', '$injecto | ||||
|             && $scope.permissionFlags     !== null | ||||
|             && $scope.rootGroup           !== null | ||||
|             && $scope.permissions         !== null | ||||
|             && $scope.attributes          !== null | ||||
|             && $scope.canSaveUser         !== null | ||||
|             && $scope.canDeleteUser       !== null; | ||||
|  | ||||
|     }; | ||||
|  | ||||
|     // Pull user attribute schema | ||||
|     schemaService.getUserAttributes().success(function attributesReceived(attributes) { | ||||
|         $scope.attributes = attributes; | ||||
|     }); | ||||
|  | ||||
|     // Pull user data | ||||
|     userService.getUser(username).success(function userReceived(user) { | ||||
|         $scope.user = user; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user