Skip to content

Commit 951633d

Browse files
author
Narayan
committed
Allow superusers to access the sponsor_detail view.
Fixes pinax#139
1 parent 6735bce commit 951633d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

symposion/sponsorship/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def sponsor_add(request):
7777
def sponsor_detail(request, pk):
7878
sponsor = get_object_or_404(Sponsor, pk=pk)
7979

80-
if sponsor.applicant != request.user:
80+
if sponsor.applicant != request.user and not request.user.is_superuser:
8181
return redirect("sponsor_list")
8282

8383
formset_kwargs = {

0 commit comments

Comments
 (0)