mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-11 09:28:27 -04:00
try again
This commit is contained in:
@@ -316,6 +316,7 @@ def init_app(application):
|
||||
application.before_request(load_organization_before_request)
|
||||
application.before_request(request_helper.check_proxy_header_before_request)
|
||||
application.before_request(make_session_permanent)
|
||||
application.before_request(block_serving_node_files)
|
||||
application.after_request(save_service_or_org_after_request)
|
||||
|
||||
start = len(asset_fingerprinter._filesystem_path)
|
||||
@@ -372,11 +373,6 @@ def init_app(application):
|
||||
g.start = monotonic()
|
||||
g.endpoint = request.endpoint
|
||||
|
||||
@application.before_request
|
||||
def block_serving_node_files():
|
||||
if "node_modules" in request.path:
|
||||
abort(403)
|
||||
|
||||
@application.context_processor
|
||||
def inject_global_template_variables():
|
||||
return {
|
||||
@@ -409,6 +405,11 @@ def make_session_permanent():
|
||||
session.permanent = True
|
||||
|
||||
|
||||
def block_serving_node_files():
|
||||
if "node_modules" in request.path:
|
||||
abort(403)
|
||||
|
||||
|
||||
def create_beta_url(url):
|
||||
url_created = None
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user