Promote Events speakers from attendee to panelist on rejoin.
Deploy Ladill Meet / deploy (push) Successful in 1m7s
Deploy Ladill Meet / deploy (push) Successful in 1m7s
Upgrade existing participant roles when a verified speaker token is present, and sync panelist access while already in the room so speaker-panel placement and publish rights apply. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -63,6 +63,8 @@ class MeetingRoomController extends Controller
|
||||
|
||||
abort_unless($participant->status === 'joined', 403, "You are not in this {$kind}.");
|
||||
|
||||
$participant = $this->sessions->syncEventsSpeakerRole($request, $participant);
|
||||
|
||||
$token = $this->media->isConfigured()
|
||||
? $this->sessions->generateMediaToken($participant)
|
||||
: '';
|
||||
@@ -520,8 +522,11 @@ class MeetingRoomController extends Controller
|
||||
$participantUuid = $request->session()->get("meet.participant.{$session->uuid}");
|
||||
abort_unless($participantUuid, 403);
|
||||
|
||||
return Participant::where('uuid', $participantUuid)
|
||||
->where('session_id', $session->id)
|
||||
->firstOrFail();
|
||||
return $this->sessions->syncEventsSpeakerRole(
|
||||
$request,
|
||||
Participant::where('uuid', $participantUuid)
|
||||
->where('session_id', $session->id)
|
||||
->firstOrFail()
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user