Make room privacy optional by default so shared join links work out of the box.
Deploy Ladill Meet / deploy (push) Successful in 1m13s

New spaces are public unless the host explicitly enables private/invite-only mode.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
isaacclad
2026-07-11 15:15:25 +00:00
co-authored by Cursor
parent 8b349da764
commit 60d006654f
3 changed files with 5 additions and 3 deletions
@@ -112,7 +112,7 @@ class SpaceController extends Controller
'audio_only' => true, 'audio_only' => true,
'space_mode' => true, 'space_mode' => true,
'stage_mode' => true, 'stage_mode' => true,
'invite_only' => $request->boolean('invite_only', true), 'invite_only' => $request->boolean('invite_only', false),
'speaker_refs' => $speakerRefs, 'speaker_refs' => $speakerRefs,
]; ];
+1 -1
View File
@@ -48,7 +48,7 @@
<fieldset class="space-y-2"> <fieldset class="space-y-2">
<legend class="text-sm font-medium text-slate-700">Privacy</legend> <legend class="text-sm font-medium text-slate-700">Privacy</legend>
<label class="flex items-start gap-2 text-sm"> <label class="flex items-start gap-2 text-sm">
<input type="checkbox" name="invite_only" value="1" @checked(old('invite_only', true)) class="mt-0.5 rounded border-slate-300"> <input type="checkbox" name="invite_only" value="1" @checked(old('invite_only', false)) class="mt-0.5 rounded border-slate-300">
<span> <span>
<span class="font-medium text-slate-800">Private room</span> <span class="font-medium text-slate-800">Private room</span>
<span class="mt-0.5 block text-xs text-slate-500">Only invited people or org members with the link can join.</span> <span class="mt-0.5 block text-xs text-slate-500">Only invited people or org members with the link can join.</span>
+3 -1
View File
@@ -1318,14 +1318,16 @@ class MeetWebTest extends TestCase
$this->actingAs($this->user) $this->actingAs($this->user)
->post('/rooms', [ ->post('/rooms', [
'title' => 'Leadership space', 'title' => 'Leadership space',
'invite_only' => true,
]) ])
->assertRedirect(); ->assertRedirect();
$room = Room::where('title', 'Leadership space')->firstOrFail();
$this->assertDatabaseHas('meet_rooms', [ $this->assertDatabaseHas('meet_rooms', [
'title' => 'Leadership space', 'title' => 'Leadership space',
'type' => 'space', 'type' => 'space',
]); ]);
$this->assertFalse($room->setting('invite_only'));
} }
public function test_space_create_sends_listener_email_invitations(): void public function test_space_create_sends_listener_email_invitations(): void