Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

Fix folder default access level (#4085)

Steven Tey3cbfa8ffd023
diff --git a/apps/web/lib/zod/schemas/folders.ts b/apps/web/lib/zod/schemas/folders.ts
index 5b7c3bdcc7..ebae2b5bf3 100644
--- a/apps/web/lib/zod/schemas/folders.ts
+++ b/apps/web/lib/zod/schemas/folders.ts
@@ -16,8 +16,10 @@ const folderAccessLevelSchema = z.enum(
const workspaceFolderAccess = folderAccessLevelSchema
.nullish()
- .default(null)
- .describe("The access level of the folder within the workspace.");
+ .default("write")
+ .describe(
+ "The workspace-level access level settings for the folder. Default is `write` which allows full access to the folder for all team members. The other options are `read` (view-only access) and `null` (no access) and are only available on Business plans and above.",
+ );
export const folderUserRoleSchema = z
.enum(Object.keys(FOLDER_USER_ROLE) as [FolderUserRole, ...FolderUserRole[]])