From dec306155823082d0e25e6abb10edc0cd269f0dd Mon Sep 17 00:00:00 2001 From: hernani Date: Fri, 14 May 2010 15:29:12 +0000 Subject: [PATCH] If you're a superuser viweing a user auth settings, don't present the option to add new provider. git-svn-id: http://svn.osqa.net/svnroot/osqa/trunk@275 0cfe37f9-358a-4d5e-be75-b63607b5c754 --- forum/skins/default/templates/auth/auth_settings.html | 4 +++- forum/views/auth.py | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/forum/skins/default/templates/auth/auth_settings.html b/forum/skins/default/templates/auth/auth_settings.html index 051fb6b..e19a10c 100644 --- a/forum/skins/default/templates/auth/auth_settings.html +++ b/forum/skins/default/templates/auth/auth_settings.html @@ -16,7 +16,9 @@ {% if not auth_keys %}

{% blocktrans %}You currently have no external authentication provider associated with your account.{% endblocktrans %}

{% endif %} - +{% ifequal user request.user %} + +{% endifequal %} {% if has_password %}

{% blocktrans %}This is where you can change your password. Make sure you remember it!{% endblocktrans %}

{% endif %} diff --git a/forum/views/auth.py b/forum/views/auth.py index 62218e8..23059e2 100644 --- a/forum/views/auth.py +++ b/forum/views/auth.py @@ -304,6 +304,7 @@ def auth_settings(request, id): }) return render_to_response('auth/auth_settings.html', { + 'user': user_, 'form': form, 'has_password': user_.has_usable_password(), 'auth_keys': auth_keys_list, -- 2.39.5