mirror of
https://github.com/docusealco/docuseal.git
synced 2026-06-23 04:10:11 +00:00
17 lines
427 B
Ruby
17 lines
427 B
Ruby
# frozen_string_literal: true
|
|
|
|
class SmsSettingsController < ApplicationController
|
|
before_action :load_encrypted_config
|
|
authorize_resource :encrypted_config, only: :index
|
|
authorize_resource :encrypted_config, parent: false, except: :index
|
|
|
|
def index; end
|
|
|
|
private
|
|
|
|
def load_encrypted_config
|
|
@encrypted_config =
|
|
EncryptedConfig.find_or_initialize_by(account: current_account, key: 'sms_configs')
|
|
end
|
|
end
|