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:
@@ -108,6 +108,12 @@ class SessionService
|
||||
$updates['joined_at'] = $existing->joined_at ?? now();
|
||||
}
|
||||
|
||||
if (in_array($role, ['host', 'co_host'], true)) {
|
||||
$updates['role'] = $role;
|
||||
} elseif ($existing->role === 'guest' && $role !== 'guest') {
|
||||
$updates['role'] = $role;
|
||||
}
|
||||
|
||||
$existing->update($updates);
|
||||
|
||||
return $existing;
|
||||
|
||||
@@ -103,6 +103,7 @@ class TownHallService
|
||||
$session->participants()
|
||||
->where('user_ref', $userRef)
|
||||
->where('status', 'joined')
|
||||
->whereNotIn('role', ['host', 'co_host'])
|
||||
->update(['role' => 'panelist']);
|
||||
|
||||
return $session->fresh();
|
||||
|
||||
Reference in New Issue
Block a user