Add legal links to Help modal

This commit is contained in:
Sebastian Serth
2023-02-24 19:39:26 +01:00
parent f232ff634b
commit 5c98ec74f0
7 changed files with 41 additions and 0 deletions

View File

@ -6,6 +6,7 @@ class ApplicationController < ActionController::Base
MEMBER_ACTIONS = %i[destroy edit show update].freeze
RENDER_HOST = CodeOcean::Config.new(:code_ocean).read[:render_host]
LEGAL_SETTINGS = CodeOcean::Config.new(:code_ocean).read[:legal] || {}
before_action :deny_access_from_render_host
after_action :verify_authorized, except: %i[welcome]