mirror of https://github.com/docusealco/docuseal
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
426 B
18 lines
426 B
# frozen_string_literal: true
|
|
|
|
class LogoSettingsController < ApplicationController
|
|
before_action :require_admin!
|
|
|
|
def update
|
|
authorize!(:manage, current_account)
|
|
|
|
if params[:remove_logo] == '1'
|
|
current_account.logo.purge
|
|
elsif params[:logo].present?
|
|
current_account.logo.attach(params[:logo])
|
|
end
|
|
|
|
redirect_to settings_personalization_path, notice: t('settings_have_been_saved')
|
|
end
|
|
end
|