guard test mode key only

This commit is contained in:
Pete Matsyburka committed 2026-09-26 17:06:38 +03:00
1 parent 5ef32bcf9e
commit 1a9e4026d9
1 file changed
+2
@@ -2,6 +2,8 @@
class TestingApiSettingsController < ApplicationController
def index
raise CanCan::AccessDenied unless current_account.testing?
authorize!(:manage, current_user.access_token)
@webhook_url = current_account.webhook_urls.first_or_initialize