Wire space listener email invites and restyle Meet index pages.
Deploy Ladill Meet / deploy (push) Successful in 42s
Deploy Ladill Meet / deploy (push) Successful in 42s
Enforce invite-only room access, validate invite emails on create, assign attendee role for listener invitations, and add invite UI on the room show page. Redesign meetings, rooms, conferences, and webinars indexes to match the Events hero, stats cards, and icon list layout. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -18,7 +18,9 @@ class InvitationService
|
||||
*/
|
||||
public function inviteToRoom(Room $room, array $invites, User $host): void
|
||||
{
|
||||
$normalized = collect($invites)->map(function ($invite) {
|
||||
$defaultRole = $room->isSpace() ? 'attendee' : 'participant';
|
||||
|
||||
$normalized = collect($invites)->map(function ($invite) use ($defaultRole) {
|
||||
$email = trim((string) ($invite['email'] ?? ''));
|
||||
if ($email === '') {
|
||||
return null;
|
||||
@@ -29,7 +31,7 @@ class InvitationService
|
||||
return [
|
||||
'email' => $email,
|
||||
'name' => $invite['name'] ?? $invite['display_name'] ?? $user?->name,
|
||||
'role' => $invite['role'] ?? 'participant',
|
||||
'role' => $invite['role'] ?? $defaultRole,
|
||||
'user_ref' => $invite['user_ref'] ?? $user?->ownerRef(),
|
||||
];
|
||||
})->filter()->unique('email')->values()->all();
|
||||
|
||||
Reference in New Issue
Block a user