Fixing raven configuration
authorAleksander Łukasz <aleksander.lukasz@nowoczesnapolska.org.pl>
Tue, 14 Jan 2014 14:32:57 +0000 (15:32 +0100)
committerAleksander Łukasz <aleksander.lukasz@nowoczesnapolska.org.pl>
Tue, 12 Aug 2014 09:47:12 +0000 (11:47 +0200)
apps/wiki/templates/wiki/bootstrap.html

index e7718df..772eb4f 100644 (file)
@@ -8,7 +8,7 @@
             <script src="http://cdn.ravenjs.com/1.1.3/jquery,native/raven.min.js"></script>
             <script>
                 Raven.config('{{RAVEN_CONFIG.SENTRY_URL}}', {{RAVEN_CONFIG.SETTINGS|default:'{}'}}).install();
-                {% if request.user %}
+                {% if request.user.is_authenticated %}
                     Raven.setUser({
                         name: '{{request.user.username}}',
                         email: '{{request.user.email}}',