From 63ec9216a9d85c80499fef9e0d9682d09ffa2875 Mon Sep 17 00:00:00 2001 From: Leif Johansson Date: Sun, 7 Aug 2011 14:33:53 +0200 Subject: include user info in 403 --- coip/apps/invitation/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'coip/apps/invitation') diff --git a/coip/apps/invitation/views.py b/coip/apps/invitation/views.py index e4cb360..542728b 100644 --- a/coip/apps/invitation/views.py +++ b/coip/apps/invitation/views.py @@ -19,7 +19,7 @@ def invite(request,id): name = get_object_or_404(Name,pk=id) if not name.has_permission(request.user,'i'): - return render403('You are not allowed to invite users to '+name) + return render403(request,'You are not allowed to invite users to '+name) user = request.user if request.method == 'POST': @@ -55,7 +55,7 @@ def cancel(request,id): name = invitation.name if not name.has_permission(request.user,'w'): - return render403('You are not allowed to cancel pending invitations to %s' % (name)) + return render403(request,'You are not allowed to cancel pending invitations to %s' % (name)) invitation.delete() return HttpResponseRedirect("/name/id/%d" % (name.id)) -- cgit v1.1