mirror of
https://github.com/docusealco/docuseal
synced 2026-11-10 07:42:32 -05:00
guard test mode key only
This commit is contained in:
1 parent
5ef32bcf9e
commit
1a9e4026d9
1 file changed
+2
@@ -2,6 +2,8 @@
|
|||||||
|
|
||||||
class TestingApiSettingsController < ApplicationController
|
class TestingApiSettingsController < ApplicationController
|
||||||
def index
|
def index
|
||||||
|
raise CanCan::AccessDenied unless current_account.testing?
|
||||||
|
|
||||||
authorize!(:manage, current_user.access_token)
|
authorize!(:manage, current_user.access_token)
|
||||||
|
|
||||||
@webhook_url = current_account.webhook_urls.first_or_initialize
|
@webhook_url = current_account.webhook_urls.first_or_initialize
|
||||||
|
|||||||
Reference in new issue
Block a user