diff --git a/coral/src/services/router-utils/route-utils.tsx b/coral/src/services/router-utils/route-utils.tsx index 4d70e15cf9..c630ed62b0 100644 --- a/coral/src/services/router-utils/route-utils.tsx +++ b/coral/src/services/router-utils/route-utils.tsx @@ -189,7 +189,7 @@ const SuperadminRoute = ({ const redirectParam = routeParams[param] ? routeParams[param] : ""; const redirectPath = `${redirectStaticPart}${redirectParam}`; - const isSuperadmin = userrole !== "SUPERADMIN"; + const isSuperadmin = userrole === "SUPERADMIN"; console.log("userrole", userrole); useEffect(() => {