private function authenticateMenuEntries(Menu $menu, array $userRoles) {
	
		foreach($menu->getEntries() as $e) {
	
			if(!$e->getAuth()) {
				$e->setAttribute('display', NULL);
			}
	
			else {
				$e->setAttribute('display', 'none');
	
				foreach($userRoles as $role) {
						
					if($e->isAuthenticatedByRole($role)) {
						$e->setAttribute('display', NULL);
						break;
					}

				}
			}
	
		}
	
	}