Skip to content

Commit

Permalink
Add permission check to slide urls.
Browse files Browse the repository at this point in the history
  • Loading branch information
loganchien committed Jan 2, 2015
1 parent 993c179 commit 1c7bbea
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions waliki/slides/views.py
Expand Up @@ -5,8 +5,10 @@
from django.shortcuts import get_object_or_404
from django.http import HttpResponse
from waliki.models import Page
from waliki.acl import permission_required


@permission_required('view_page')
def slides(request, slug):
page = get_object_or_404(Page, slug=slug)
outpath = tempfile.mkdtemp()
Expand Down

0 comments on commit 1c7bbea

Please sign in to comment.