mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 13:17:41 +00:00
GUACAMOLE-598: Merge ignore if current user has no associated data.
This commit is contained in:
@@ -95,13 +95,10 @@ angular.module('navigation').directive('guacUserMenu', [function guacUserMenu()
|
|||||||
*/
|
*/
|
||||||
$scope.role = null;
|
$scope.role = null;
|
||||||
|
|
||||||
// Pull user data
|
// Display user profile attributes if available
|
||||||
userService.getUser(authenticationService.getDataSource(), $scope.username)
|
userService.getUser(authenticationService.getDataSource(), $scope.username)
|
||||||
.then(function userRetrieved(user) {
|
.then(function userRetrieved(user) {
|
||||||
|
|
||||||
// Store retrieved user object
|
|
||||||
$scope.user = user;
|
|
||||||
|
|
||||||
// Pull basic profile information
|
// Pull basic profile information
|
||||||
$scope.fullName = user.attributes[User.Attributes.FULL_NAME];
|
$scope.fullName = user.attributes[User.Attributes.FULL_NAME];
|
||||||
$scope.organization = user.attributes[User.Attributes.ORGANIZATION];
|
$scope.organization = user.attributes[User.Attributes.ORGANIZATION];
|
||||||
@@ -111,7 +108,7 @@ angular.module('navigation').directive('guacUserMenu', [function guacUserMenu()
|
|||||||
var email = user.attributes[User.Attributes.EMAIL_ADDRESS];
|
var email = user.attributes[User.Attributes.EMAIL_ADDRESS];
|
||||||
$scope.userURL = email ? 'mailto:' + email : null;
|
$scope.userURL = email ? 'mailto:' + email : null;
|
||||||
|
|
||||||
}, requestService.DIE);
|
}, requestService.IGNORE);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The available main pages for the current user.
|
* The available main pages for the current user.
|
||||||
|
Reference in New Issue
Block a user