From 2d13587196253861795f02031a061102f2be9eff Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Apr 12 2019 12:11:58 +0000 Subject: Only show settings for blueprints having a settings endpoint Otherwise 3rd party extensions that do not provide this settings endpoint ends up breaking the settings page. Signed-off-by: Pierre-Yves Chibon --- diff --git a/pagure/templates/settings.html b/pagure/templates/settings.html index f7fc247..5c93c25 100644 --- a/pagure/templates/settings.html +++ b/pagure/templates/settings.html @@ -105,8 +105,7 @@ {% endif %} {% for blueprint in main_app.blueprints %} - {% if blueprint not in [ - 'api_ns', 'ui_ns', 'internal_ns', 'theme'] %} + {% if blueprint | hasattr('settings') %}