-
app/Exceptions/Http/HttpForbiddenException.php
Open in GitHubuse Illuminate\Http\Response; use Symfony\Component\HttpKernel\Exception\HttpException; class HttpForbiddenException extends HttpException { public function __construct(string $message = null, \Throwable $previous = null) { parent::__construct(Response::HTTP_FORBIDDEN, $message, $previous); } }
-
app/Http/Controllers/Api/Client/Servers/WebsocketController.php#L58
Open in GitHubuse Pterodactyl\Exceptions\Http\HttpForbiddenException; class WebsocketController extends ClientApiController { public function __invoke(ClientApiRequest $request, Server $server) { // $permissions = $this->permissionsService->handle($server, $user); // if (!in_array('admin.websocket.transfer', $permissions)) { throw new HttpForbiddenException('You do not have permission to view server transfer logs.'); } // } }