Clone procedure notice
This commit is contained in:
parent
ebe367b827
commit
785fe3410e
5 changed files with 35 additions and 2 deletions
|
@ -10,6 +10,7 @@ class ApplicationController < ActionController::Base
|
|||
before_action :reject, if: -> { Flipflop.maintenance_mode? }
|
||||
|
||||
before_action :staging_authenticate
|
||||
before_action :set_active_storage_host
|
||||
|
||||
def staging_authenticate
|
||||
if StagingAuthService.enabled? && !authenticate_with_http_basic { |username, password| StagingAuthService.authenticate(username, password) }
|
||||
|
@ -57,6 +58,10 @@ class ApplicationController < ActionController::Base
|
|||
|
||||
private
|
||||
|
||||
def set_active_storage_host
|
||||
ActiveStorage::Current.host = request.base_url
|
||||
end
|
||||
|
||||
def logged_users
|
||||
@logged_users ||= [
|
||||
current_user,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue