Skip to content
This repository has been archived by the owner on Mar 24, 2019. It is now read-only.

Commit

Permalink
Allow superusers to access the sponsor_detail view.
Browse files Browse the repository at this point in the history
Fixes pinax#139
  • Loading branch information
Narayan authored and martey committed Aug 4, 2016
1 parent d3dc642 commit d486d0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion symposion/sponsorship/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def sponsor_add(request):
def sponsor_detail(request, pk):
sponsor = get_object_or_404(Sponsor, pk=pk)

if sponsor.applicant != request.user:
if sponsor.applicant != request.user and not request.user.is_superuser:
return redirect("sponsor_list")

formset_kwargs = {
Expand Down

0 comments on commit d486d0b

Please sign in to comment.