From 8e9eee650802da9cf51e8ca6167cdb8f48ea791e Mon Sep 17 00:00:00 2001 From: "opensearch-trigger-bot[bot]" <98922864+opensearch-trigger-bot[bot]@users.noreply.github.com> Date: Tue, 31 Oct 2023 15:39:50 -0700 Subject: [PATCH] Update empty allowed roles to admin only (#1217) (#1219) (cherry picked from commit 4c93be76efbc37c61f84ed84420eee9997c01d12) Signed-off-by: Derek Ho Signed-off-by: github-actions[bot] Co-authored-by: github-actions[bot] --- .../datasources/components/new/query_permissions.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/public/components/datasources/components/new/query_permissions.tsx b/public/components/datasources/components/new/query_permissions.tsx index 1a66ae198..0c0853b57 100644 --- a/public/components/datasources/components/new/query_permissions.tsx +++ b/public/components/datasources/components/new/query_permissions.tsx @@ -30,7 +30,8 @@ export const QueryPermissionsConfiguration = (props: PermissionsConfigurationPro }, { id: QUERY_ALL, - label: 'Everyone - accessible by all users on this cluster', + label: 'Admin only - only accessible by the admin', + disabled: !hasSecurityAccess, }, ];