]> git.ipfire.org Git - ipfire.org.git/commitdiff
analytics: Make them visible to all staff master
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 20 Apr 2026 14:18:44 +0000 (14:18 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 20 Apr 2026 14:18:44 +0000 (14:18 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/templates/blog/post.html
src/templates/docs/page.html

index 2da51deaeacd92c00cfb822221c16b7cab487560..dca14c611b4a6f2e4db74c828a3b5071fc252807 100644 (file)
 
        {# Analytics #}
        {% if post.is_published() %}
-               {% if current_user and current_user.is_admin() %}
+               {% if current_user and current_user.is_staff() %}
                        <section class="hero is-dark">
                                <div class="hero-body">
                                        <div class="container">
index 6dcf393077d41242aaa9a8a9bfbd430eac616c44..4ff43e5598b17f9fd0bc385c25d7d127ee6a09e9 100644 (file)
@@ -65,7 +65,7 @@
        </section>
 
        {# Analytics #}
-       {% if current_user and current_user.is_admin() %}
+       {% if current_user and current_user.is_staff() %}
                <section class="hero is-dark">
                        <div class="hero-body">
                                <div class="container">