Skip to content

Commit 644d46a

Browse files
committed
change member approval default behavior and updated docs
1 parent d221657 commit 644d46a

File tree

4 files changed

+20
-8
lines changed

4 files changed

+20
-8
lines changed

docs/docs/configuration/auth/inviting-members.mdx

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,23 @@ sidebarTitle: Inviting members
55

66
There are various ways to configure how members can join a Sourcebot deployment.
77

8-
**By default, Sourcebot doesn't
9-
require new members to be approved**. This means that new sign ups on your deployment are automatically added to
10-
the organization.
8+
## Member Approval
119

12-
Member approval can be configured by an owner of the deployment by navigating to **Settings -> Members**:
10+
**By default, Sourcebot requires new members to be approved by the owner of the deploymen**. This section explains how approvals work and how
11+
to configure this behavior.
12+
13+
### Configuration
14+
Member approval can be configured by the owner of the deployment by navigating to **Settings -> Members**:
1315

1416
![Member Approval Toggle](/images/member_approval_toggle.png)
1517

18+
### Managing Requests
19+
20+
If member approval is enabled, new members will be asked to submit a join request after signing up. They will not have access to the Sourcebot deployment
21+
until this request is approved by the owner.
22+
23+
The owner can see and manage all pending join requests by navigating to **Settings -> Members**.
24+
1625
## Invite link
1726

1827
If member approval is required, an owner of the deployment can enable an invite link. When enabled, users
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
-- AlterTable
2+
ALTER TABLE "Org" ALTER COLUMN "memberApprovalRequired" SET DEFAULT true,
3+
ALTER COLUMN "inviteLinkEnabled" SET DEFAULT false;

packages/db/prisma/schema.prisma

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ model Org {
165165
imageUrl String?
166166
metadata Json? // For schema see orgMetadataSchema in packages/web/src/types.ts
167167
168-
memberApprovalRequired Boolean @default(false)
168+
memberApprovalRequired Boolean @default(true)
169169
170170
stripeCustomerId String?
171171
stripeSubscriptionStatus StripeSubscriptionStatus?
@@ -175,7 +175,7 @@ model Org {
175175
invites Invite[]
176176
177177
/// The invite id for this organization
178-
inviteLinkEnabled Boolean @default(true)
178+
inviteLinkEnabled Boolean @default(false)
179179
inviteLinkId String?
180180
181181
audits Audit[]

packages/web/src/app/onboard/page.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,15 +67,15 @@ export default async function Onboarding({ searchParams }: OnboardingProps) {
6767

6868
const resourceCards: ResourceCard[] = [
6969
{
70-
title: "Connect to your code hosts",
70+
title: "Code host connections",
7171
description: "Learn how to index repos across Sourcebot's supported platforms",
7272
href: "https://docs.sourcebot.dev/docs/connections/overview",
7373
icon: <GitBranchIcon className="w-4 h-4" />,
7474
},
7575
{
7676
title: "Authentication system",
7777
description: "Learn how to setup additional auth providers, invite members, and more",
78-
href: "https://docs.sourcebot.dev/docs/configuration/auth/overview",
78+
href: "https://docs.sourcebot.dev/docs/configuration/auth",
7979
icon: <LockIcon className="w-4 h-4" />,
8080
}
8181
]

0 commit comments

Comments
 (0)