Commit c053503a by Bridger Maxwell

Added login_required to create_root.

parent d238020a
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
import difflib import difflib
from django.contrib import messages from django.contrib import messages
from django.contrib.auth.decorators import login_required
from django.shortcuts import render_to_response, redirect, get_object_or_404 from django.shortcuts import render_to_response, redirect, get_object_or_404
from django.template.context import RequestContext from django.template.context import RequestContext
from django.utils.decorators import method_decorator from django.utils.decorators import method_decorator
...@@ -344,6 +345,7 @@ class Settings(ArticleMixin, TemplateView): ...@@ -344,6 +345,7 @@ class Settings(ArticleMixin, TemplateView):
permission_form_class = forms.PermissionsForm permission_form_class = forms.PermissionsForm
template_name="wiki/settings.html" template_name="wiki/settings.html"
@method_decorator(login_required)
@method_decorator(get_article(can_read=True)) @method_decorator(get_article(can_read=True))
def dispatch(self, request, article, *args, **kwargs): def dispatch(self, request, article, *args, **kwargs):
return super(Settings, self).dispatch(request, article, *args, **kwargs) return super(Settings, self).dispatch(request, article, *args, **kwargs)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment