Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SYNC] Develop to Design System MF #261

Merged
merged 14 commits into from
Aug 22, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
added new roles for integretion
abilpraju-aot committed Aug 14, 2024
commit e7e4f8332773a5bc6675dd4513980f8cd76ec7b1
4 changes: 2 additions & 2 deletions forms-flow-integration/src/index.tsx
Original file line number Diff line number Diff line change
@@ -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";
@@ -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")