data-govt-nz / ckanext-security

A CKAN extension to hold various security improvements for CKAN
GNU Affero General Public License v3.0
25 stars 33 forks source link

Added "if is_flask_request" inside _build_footer_content() to fix notify_lockout() functionality in CKAN 2.9.5 #54

Closed twdbben closed 1 year ago

twdbben commented 2 years ago

The render_jinja2() call in _build_footer_content() was failing on CKAN 2.9.5, which causes the notify_lockout functionality to fail.

An is_flask_request() conditional was added to fix the problem.