diff --git a/src/App.php b/src/App.php
index 38b207c266..059efc17cc 100644
--- a/src/App.php
+++ b/src/App.php
@@ -554,6 +554,7 @@ class App
'$touch_icon' => $touch_icon,
'$stylesheet' => $stylesheet,
'$infinite_scroll' => $invinite_scroll,
+ '$block_public' => intval(Config::get('system', 'block_public')),
]) . $this->page['htmlhead'];
}
diff --git a/view/theme/frio/templates/head.tpl b/view/theme/frio/templates/head.tpl
index ef1cd810b0..7d6cadea94 100644
--- a/view/theme/frio/templates/head.tpl
+++ b/view/theme/frio/templates/head.tpl
@@ -92,7 +92,9 @@
{{* own js files *}}
+{{if ! $block_public}}
+{{/if}}