File tree Expand file tree Collapse file tree
apps/web/app/(use-page-wrapper)/apps/routing-forms/forms/[[...pages]] Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ import { WEBAPP_URL } from "@calcom/lib/constants";
1818import { useHasPaidPlan } from "@calcom/lib/hooks/useHasPaidPlan" ;
1919import { useLocale } from "@calcom/lib/hooks/useLocale" ;
2020import { useRouterQuery } from "@calcom/lib/hooks/useRouterQuery" ;
21+ import { MembershipRole } from "@calcom/prisma/enums" ;
2122import { trpc } from "@calcom/trpc/react" ;
2223import { ArrowButton } from "@calcom/ui/components/arrow-button" ;
2324import { Badge } from "@calcom/ui/components/badge" ;
@@ -46,6 +47,10 @@ function NewFormButton({ setNewFormDialogState }: { setNewFormDialogState: SetNe
4647 createFunction = { ( teamId ) => {
4748 setNewFormDialogState ( { action : "new" , target : teamId ? String ( teamId ) : "" } ) ;
4849 } }
50+ withPermission = { {
51+ permission : "routingForm.create" ,
52+ fallbackRoles : [ MembershipRole . OWNER , MembershipRole . ADMIN ] ,
53+ } }
4954 />
5055 ) ;
5156}
You can’t perform that action at this time.
0 commit comments