invoiceninja/app/Http/Requests/Webhook/DestroyWebhookRequest.php

28 lines
600 B
PHP
Raw Normal View History

<?php
/**
* Invoice Ninja (https://invoiceninja.com).
*
* @link https://github.com/invoiceninja/invoiceninja source repository
*
2022-04-27 13:20:41 +10:00
* @copyright Copyright (c) 2022. Invoice Ninja LLC (https://invoiceninja.com)
*
2021-06-16 16:58:16 +10:00
* @license https://www.elastic.co/licensing/elastic-license
*/
2020-07-06 21:22:36 +10:00
namespace App\Http\Requests\Webhook;
use App\Http\Requests\Request;
2020-07-06 21:22:36 +10:00
class DestroyWebhookRequest extends Request
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize() : bool
{
return auth()->user()->isAdmin();
}
}