Skip to content

Commit

Permalink
Uncomment security role check
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Liang <jiallian@amazon.com>
  • Loading branch information
RyanL1997 committed Jul 19, 2024
1 parent c2a7bbc commit 23ea1e4
Showing 1 changed file with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,16 +34,16 @@ export const AccessControlTab = (props: AccessControlTabProps) => {
const { http } = useOpenSearchDashboards<DataSourceManagementContext>().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<Role[]>(
Expand Down

0 comments on commit 23ea1e4

Please sign in to comment.