mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-02-05 19:03:30 -05:00
Fixed linting errors
This commit is contained in:
@@ -26,12 +26,14 @@ from notifications_utils.url_safe_token import generate_token
|
||||
|
||||
feature_guidance_enabled = os.getenv('FEATURE_GUIDANCE_ENABLED', 'false').lower() == 'true'
|
||||
|
||||
|
||||
# Hook to check for guidance routes
|
||||
@main.before_request
|
||||
def check_guidance_feature():
|
||||
if request.path.startswith("/guidance") and not feature_guidance_enabled:
|
||||
abort(404)
|
||||
|
||||
|
||||
@main.route("/")
|
||||
def index():
|
||||
if current_user and current_user.is_authenticated:
|
||||
|
||||
Reference in New Issue
Block a user