From ef0cb1ee7a6e9295193193242f959e5b4ebe7b4d Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Tue, 4 Dec 2018 13:22:13 -0800 Subject: [PATCH] GUACAMOLE-598: Ignore if current user has no associated data. Authentication providers are not required to provide data for the users they authenticate. --- .../main/webapp/app/navigation/directives/guacUserMenu.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/guacamole/src/main/webapp/app/navigation/directives/guacUserMenu.js b/guacamole/src/main/webapp/app/navigation/directives/guacUserMenu.js index 5c6ad74a8..c6630e72b 100644 --- a/guacamole/src/main/webapp/app/navigation/directives/guacUserMenu.js +++ b/guacamole/src/main/webapp/app/navigation/directives/guacUserMenu.js @@ -95,13 +95,10 @@ angular.module('navigation').directive('guacUserMenu', [function guacUserMenu() */ $scope.role = null; - // Pull user data + // Display user profile attributes if available userService.getUser(authenticationService.getDataSource(), $scope.username) .then(function userRetrieved(user) { - // Store retrieved user object - $scope.user = user; - // Pull basic profile information $scope.fullName = user.attributes[User.Attributes.FULL_NAME]; $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]; $scope.userURL = email ? 'mailto:' + email : null; - }, requestService.DIE); + }, requestService.IGNORE); /** * The available main pages for the current user.