Make room privacy optional by default so shared join links work out of the box.
Deploy Ladill Meet / deploy (push) Successful in 1m13s
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:
@@ -112,7 +112,7 @@ class SpaceController extends Controller
|
||||
'audio_only' => true,
|
||||
'space_mode' => true,
|
||||
'stage_mode' => true,
|
||||
'invite_only' => $request->boolean('invite_only', true),
|
||||
'invite_only' => $request->boolean('invite_only', false),
|
||||
'speaker_refs' => $speakerRefs,
|
||||
];
|
||||
|
||||
|
||||
@@ -48,7 +48,7 @@
|
||||
<fieldset class="space-y-2">
|
||||
<legend class="text-sm font-medium text-slate-700">Privacy</legend>
|
||||
<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 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>
|
||||
|
||||
@@ -1318,14 +1318,16 @@ class MeetWebTest extends TestCase
|
||||
$this->actingAs($this->user)
|
||||
->post('/rooms', [
|
||||
'title' => 'Leadership space',
|
||||
'invite_only' => true,
|
||||
])
|
||||
->assertRedirect();
|
||||
|
||||
$room = Room::where('title', 'Leadership space')->firstOrFail();
|
||||
|
||||
$this->assertDatabaseHas('meet_rooms', [
|
||||
'title' => 'Leadership space',
|
||||
'type' => 'space',
|
||||
]);
|
||||
$this->assertFalse($room->setting('invite_only'));
|
||||
}
|
||||
|
||||
public function test_space_create_sends_listener_email_invitations(): void
|
||||
|
||||
Reference in New Issue
Block a user