Skip to content

Commit

Permalink
added new roles for integretion
Browse files Browse the repository at this point in the history
  • Loading branch information
abilpraju-aot committed Aug 14, 2024
1 parent 0246569 commit e7e4f83
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions forms-flow-integration/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
KEYCLOAK_CLIENT,
} from "./endpoints/config";
import Footer from "./components/Footer";
import { BASE_ROUTE, DESIGNER_ROLE, MULTITENANCY_ENABLED, ENABLE_INTEGRATION_PREMIUM } from "./constants";
import { BASE_ROUTE, MULTITENANCY_ENABLED, ENABLE_INTEGRATION_PREMIUM } from "./constants";
import Recipes from "./components/Recipes";
import ConnectedApps from "./components/ConnectedApps";
import PremiumSubscription from "./components/PremiumSubscription";
Expand Down Expand Up @@ -65,7 +65,7 @@ const Integration = React.memo(({ props }: any) => {
React.useEffect(() => {
if (!isAuth) return
const roles = JSON.parse(StorageService.get(StorageService.User.USER_ROLE));
if (roles.includes(DESIGNER_ROLE)) {
if (roles.includes('view_designs')) {
setIsDesigner(true);
}
const locale = localStorage.getItem("i18nextLng")
Expand Down

0 comments on commit e7e4f83

Please sign in to comment.