From: hernani Date: Thu, 29 Apr 2010 00:43:57 +0000 (+0000) Subject: Fixing OSQA-197 X-Git-Tag: live~992 X-Git-Url: https://git.openstreetmap.org./osqa.git/commitdiff_plain/46043edb34710a1cc978f33982a1191534dcfadb Fixing OSQA-197 git-svn-id: http://svn.osqa.net/svnroot/osqa/trunk@88 0cfe37f9-358a-4d5e-be75-b63607b5c754 --- diff --git a/forum/views/auth.py b/forum/views/auth.py index 9dafc41..4857b71 100644 --- a/forum/views/auth.py +++ b/forum/views/auth.py @@ -312,6 +312,8 @@ def auth_settings(request): def remove_external_provider(request, id): association = get_object_or_404(AuthKeyUserAssociation, id=id) + if not association.user == request.user: + raise Http404() request.user.message_set.create(message=_("You removed the association with %s") % association.provider) association.delete() return HttpResponseRedirect(reverse('user_authsettings'))