from django.shortcuts import render_to_response, get_object_or_404
from django.core.urlresolvers import reverse
-from django.http import HttpResponseRedirect, HttpResponse, HttpResponseForbidden, Http404
+from django.http import HttpResponseRedirect, HttpResponse, Http404
+from forum.http_responses import HttpResponseUnauthorized
from django.template import RequestContext
from django.utils.translation import ugettext as _
from django.utils import simplejson
if request.user.is_authenticated() and request.user.is_superuser:
return fn(request, *args, **kwargs)
else:
- return HttpResponseForbidden()
+ return HttpResponseUnauthorized(request)
return wrapper
context['othersets'] = sorted(
[s for s in Setting.sets.values() if not s.name in
('basic', 'users', 'email', 'paths', 'extkeys', 'repgain', 'minrep', 'voting', 'badges', 'about', 'faq', 'sidebar',
- 'form', 'moderation', 'css', 'headandfoot', 'head')]
+ 'form', 'moderation', 'css', 'headandfoot', 'head', 'view')]
, lambda s1, s2: s1.weight - s2.weight)
unsaved = request.session.get('previewing_settings', {})