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:
		| @@ -68,7 +68,18 @@ angular.module('navigation').directive('guacUserMenu', [function guacUserMenu() | ||||
|             .then(function retrievedMainPages(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 | ||||
|              * after logout completes. | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| <div class="user-menu"> | ||||
| <div class="user-menu" ng-show="!isAnonymous()"> | ||||
|     <guac-menu menu-title="username"> | ||||
|             | ||||
|         <!-- Local actions --> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user