mirror of
https://github.com/ericasch6/scrum-poker-internal.git
synced 2026-10-13 17:52:09 +00:00
26 lines
654 B
PHP
26 lines
654 B
PHP
<?php
|
|
|
|
namespace App\Http\Controllers;
|
|
|
|
use App\Http\Requests\UpdateRoomPermissionsRequest;
|
|
use App\Models\Room;
|
|
use App\Services\Rooms\RoomPermissionService;
|
|
use Illuminate\Http\Response;
|
|
|
|
class RoomPermissionController extends Controller
|
|
{
|
|
public function __construct(
|
|
private readonly RoomPermissionService $roomPermissions,
|
|
) {}
|
|
|
|
public function __invoke(UpdateRoomPermissionsRequest $request, Room $room): Response
|
|
{
|
|
$this->roomPermissions->updateParticipantControls(
|
|
$room,
|
|
(bool) $request->validated('allow_participant_controls'),
|
|
);
|
|
|
|
return response()->noContent();
|
|
}
|
|
}
|