Fix bad if/then.

This commit is contained in:
James Cole
2023-12-29 09:16:13 +01:00
parent 0d7fd36c38
commit e594b9304a
6 changed files with 200 additions and 176 deletions

View File

@@ -61,8 +61,8 @@ class DeleteController extends Controller
*
* @return Application|Factory|View
*/
public function index(Webhook $webhook) {
public function index(Webhook $webhook)
{
Log::channel('audit')->info('User visits webhook delete page.');
if(false === config('firefly.allow_webhooks')) {
throw new NotFoundHttpException('Webhooks are not enabled.');