Limit access to webhooks to admins

This commit is contained in:
Stanko K.R.
2025-09-12 19:16:39 +02:00
parent 1d192c9d42
commit 25b2daad93
10 changed files with 23 additions and 21 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
class ApplicationController < ActionController::Base
include Authentication, CurrentRequest, CurrentTimezone, SetPlatform, TurboFlash, WriterAffinity
include Authentication, Authorization, CurrentRequest, CurrentTimezone, SetPlatform, TurboFlash, WriterAffinity
stale_when_importmap_changes
allow_browser versions: :modern, block: -> { render "errors/not_acceptable", layout: "error" }