mirror of
				https://github.com/gyurix1968/guacamole-client.git
				synced 2025-10-31 00:53:21 +00:00 
			
		
		
		
	GUACAMOLE-78: Do not display user menu for anonymous users.
This commit is contained in:
		| @@ -69,6 +69,17 @@ angular.module('navigation').directive('guacUserMenu', [function guacUserMenu() | |||||||
|                 $scope.pages = pages; |                 $scope.pages = pages; | ||||||
|             }); |             }); | ||||||
|  |  | ||||||
|  |             /** | ||||||
|  |              * Returns whether the current user has authenticated anonymously. | ||||||
|  |              * | ||||||
|  |              * @returns {Boolean} | ||||||
|  |              *     true if the current user has authenticated anonymously, false | ||||||
|  |              *     otherwise. | ||||||
|  |              */ | ||||||
|  |             $scope.isAnonymous = function isAnonymous() { | ||||||
|  |                 return authenticationService.isAnonymous(); | ||||||
|  |             }; | ||||||
|  |  | ||||||
|             /** |             /** | ||||||
|              * Logs out the current user, redirecting them to back to the root |              * Logs out the current user, redirecting them to back to the root | ||||||
|              * after logout completes. |              * after logout completes. | ||||||
|   | |||||||
| @@ -1,4 +1,4 @@ | |||||||
| <div class="user-menu"> | <div class="user-menu" ng-show="!isAnonymous()"> | ||||||
|     <guac-menu menu-title="username"> |     <guac-menu menu-title="username"> | ||||||
|             |             | ||||||
|         <!-- Local actions --> |         <!-- Local actions --> | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user