Skip to content

Commit

Permalink
prevent unauthed from hitting edit pages
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeman committed Sep 21, 2012
1 parent 73f6e7a commit 3c3a3e1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions symposion/cms/views.py
@@ -1,6 +1,8 @@
from django.http import Http404
from django.shortcuts import render, redirect

from django.contrib.auth.decorators import login_required

from .models import Page
from .forms import PageForm

Expand Down Expand Up @@ -30,6 +32,7 @@ def page(request, path):
})


@login_required
def page_edit(request, path):

if not can_edit(request.user):
Expand Down

0 comments on commit 3c3a3e1

Please sign in to comment.