Skip to content

Commit

Permalink
Merge pull request #255 from abilpraju-aot/bugfix/FWF-3567-designer-role
Browse files Browse the repository at this point in the history
added new roles for integretion
  • Loading branch information
arun-s-aot authored Aug 16, 2024
2 parents 1ac8100 + e7e4f83 commit 2f8f3b3
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 2f8f3b3

Please sign in to comment.