From 8ef743e211c34ebea151c740307602619db9718e Mon Sep 17 00:00:00 2001 From: Shailesh Baldaniya Date: Tue, 25 Feb 2020 05:13:44 +0000 Subject: [PATCH] Fix Three Dot menu When user don;t have permission to create --- app/ui-sidenav/client/sidebarHeader.js | 1 - 1 file changed, 1 deletion(-) diff --git a/app/ui-sidenav/client/sidebarHeader.js b/app/ui-sidenav/client/sidebarHeader.js index 81e09b922bd7..493742d587f4 100644 --- a/app/ui-sidenav/client/sidebarHeader.js +++ b/app/ui-sidenav/client/sidebarHeader.js @@ -250,7 +250,6 @@ const toolbarButtons = (user) => [{ { name: t('Options'), icon: 'menu', - condition: () => AccountBox.getItems().length || hasAtLeastOnePermission(['manage-emoji', 'manage-integrations', 'manage-oauth-apps', 'manage-own-integrations', 'manage-selected-settings', 'manage-sounds', 'view-logs', 'view-privileged-setting', 'view-room-administration', 'view-statistics', 'view-user-administration', 'access-setting-permissions']), hasPopup: true, action: (e) => { let adminOption;