From 1727f040f0dc605c99cd982a4df74ec392650163 Mon Sep 17 00:00:00 2001 From: Pritish Budhiraja <1805317@kiit.ac.in> Date: Tue, 23 Jan 2024 16:31:41 +0530 Subject: [PATCH] fix: Access Control Issue --- src/entryPoints/hyperswitch/HyperSwitchApp.res | 7 ++++--- src/utils/AccessControl.res | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/entryPoints/hyperswitch/HyperSwitchApp.res b/src/entryPoints/hyperswitch/HyperSwitchApp.res index 8f90ad3b9..929e51945 100644 --- a/src/entryPoints/hyperswitch/HyperSwitchApp.res +++ b/src/entryPoints/hyperswitch/HyperSwitchApp.res @@ -361,11 +361,11 @@ let make = () => { /> | list{"recon"} => - + | list{"sdk"} => - + | list{"3ds"} => @@ -397,7 +397,8 @@ let make = () => { | list{"business-profiles"} => - + | list{"quick-start"} => determineQuickStartPageState() diff --git a/src/utils/AccessControl.res b/src/utils/AccessControl.res index 9e4f772e4..23705a541 100644 --- a/src/utils/AccessControl.res +++ b/src/utils/AccessControl.res @@ -1,6 +1,6 @@ open AuthTypes @react.component -let make = (~isEnabled=true, ~permission=NoAccess, ~children) => { +let make = (~isEnabled=true, ~permission, ~children) => { let isAccessAllowed = permission === Access isEnabled && isAccessAllowed ? children : }