The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Update update-folder-user-role.ts
Steven Tey6f45dccab96b
diff --git a/apps/web/lib/actions/folders/update-folder-user-role.ts b/apps/web/lib/actions/folders/update-folder-user-role.tsindex cdb44e99cc..b72a9ccd77 100644--- a/apps/web/lib/actions/folders/update-folder-user-role.ts+++ b/apps/web/lib/actions/folders/update-folder-user-role.ts@@ -25,6 +25,8 @@ export const updateUserRoleInFolder = authActionClientthrow new Error("You cannot update your own role.");}+ // throw error if plan is free or pro+await verifyFolderAccess({workspaceId: workspace.id,userId: user.id,