Fix green room Go live and Panels hidden for conference hosts.
Deploy Ladill Meet / deploy (push) Successful in 34s
Deploy Ladill Meet / deploy (push) Successful in 34s
Stop registerPresenter from demoting hosts to panelists, recognize room owners as managers, and show stage controls in the green room banner. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -356,7 +356,16 @@ class MeetingFeaturesController extends Controller
|
||||
protected function hostOnly(Request $request, Session $session): Participant
|
||||
{
|
||||
$participant = $this->participant($request, $session);
|
||||
abort_unless($participant->isHost(), 403);
|
||||
$user = $request->user();
|
||||
$isRoomHost = $user && $user->ownerRef() === $session->room->host_user_ref;
|
||||
|
||||
abort_unless($participant->isHost() || $isRoomHost, 403);
|
||||
|
||||
if ($isRoomHost && ! $participant->isHost()) {
|
||||
$participant->update(['role' => 'host']);
|
||||
|
||||
return $participant->fresh();
|
||||
}
|
||||
|
||||
return $participant;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user