From 0136e164d83240f9e8f2b1dc3dc34157884deb90 Mon Sep 17 00:00:00 2001
From: Andreas <andreasv@fsmpi.rwth-aachen.de>
Date: Tue, 19 Sep 2017 20:16:44 +0200
Subject: [PATCH] fixed the stats beeing always loaded, even for
 non-moderators.  closes #332

---
 templates/course.html | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/templates/course.html b/templates/course.html
index 0c85dd2..6dec013 100644
--- a/templates/course.html
+++ b/templates/course.html
@@ -97,7 +97,7 @@
 		{% endfor %}
 	</ul>
 </div>
-
+{% if ismod() %}
 <script>
 $.ajax({
 	method: "GET",
@@ -131,4 +131,5 @@ $.ajax({
 	}
 });
 </script>
+{% endif %}
 {% endblock %}
-- 
GitLab