Pārlūkot izejas kodu

HUE-717 [core] Repetitive HTTP requests on each page

The check_config_ajax call is now made just for superusers
Enrico Berti 13 gadi atpakaļ
vecāks
revīzija
bb60a98

+ 2 - 0
desktop/core/src/desktop/templates/common_header.mako

@@ -99,7 +99,9 @@ from django.utils.translation import ugettext as _
       }).change(function(){
         $(this).closest("form").submit();
       });
+      % if user.is_superuser:
       $("#checkConfig").load("/debug/check_config_ajax");
+      % endif
       $(".navbar .nav-tooltip").tooltip({
         delay:0,
         placement:'bottom'});