From 23ea1e46c28d3c0bb367554ee456d33fbad6f735 Mon Sep 17 00:00:00 2001 From: Ryan Liang Date: Thu, 18 Jul 2024 20:10:45 -0700 Subject: [PATCH] Uncomment security role check Signed-off-by: Ryan Liang --- .../access_control_tab.tsx | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/plugins/data_source_management/public/components/direct_query_data_sources_components/direct_query_connection_detail/access_control_tab.tsx b/src/plugins/data_source_management/public/components/direct_query_data_sources_components/direct_query_connection_detail/access_control_tab.tsx index 42256d3ab694..696c8dc7148a 100644 --- a/src/plugins/data_source_management/public/components/direct_query_data_sources_components/direct_query_connection_detail/access_control_tab.tsx +++ b/src/plugins/data_source_management/public/components/direct_query_data_sources_components/direct_query_connection_detail/access_control_tab.tsx @@ -34,16 +34,16 @@ export const AccessControlTab = (props: AccessControlTabProps) => { const { http } = useOpenSearchDashboards().services; useEffect(() => { - // http! - // .get(SECURITY_ROLES) - // .then((data) => - // setRoles( - // Object.keys(data.data).map((key) => { - // return { label: key }; - // }) - // ) - // ) - // .catch((err) => setHasSecurityAccess(false)); + http! + .get(SECURITY_ROLES) + .then((data) => + setRoles( + Object.keys(data.data).map((key) => { + return { label: key }; + }) + ) + ) + .catch((err) => setHasSecurityAccess(false)); }, [http]); const [selectedQueryPermissionRoles, setSelectedQueryPermissionRoles] = useState(