]> git.openstreetmap.org Git - osqa.git/blobdiff - forum/views/meta.py
We update "karma" to "reputation", as in the translation file.
[osqa.git] / forum / views / meta.py
index 3330a3b641120295baa5387724e1343ca3cf3e47..2177301d48b3bf723a254815aef85106a08484d0 100644 (file)
@@ -6,6 +6,8 @@ from django.template import RequestContext, loader
 from django.http import HttpResponseRedirect, HttpResponse, Http404
 from django.views.static import serve
 from forum import settings
+from forum.modules import decorate
+from forum.views.decorators import login_required
 from forum.forms import FeedbackForm
 from django.core.urlresolvers import reverse
 from django.utils.translation import ugettext as _
@@ -70,6 +72,7 @@ feedback.CANCEL_MESSAGE=_('We look forward to hearing your feedback! Please, giv
 def privacy(request):
     return render_to_response('privacy.html', context_instance=RequestContext(request))
 
+@decorate.withfn(login_required)
 def logout(request):
     return render_to_response('logout.html', {
     'next' : get_next_url(request),