{% if not auth_keys %}
<p class="message">{% blocktrans %}You currently have no external authentication provider associated with your account.{% endblocktrans %}</p>
{% endif %}
{% if not auth_keys %}
<p class="message">{% blocktrans %}You currently have no external authentication provider associated with your account.{% endblocktrans %}</p>
{% endif %}
-<input type="button" class="submit" value="{% trans "Add new provider" %}" onclick="window.location='{% url user_add_external_provider %}'" />
+{% ifequal user request.user %}
+ <input type="button" class="submit" value="{% trans "Add new provider" %}" onclick="window.location='{% url user_add_external_provider %}'" />
+{% endifequal %}
{% if has_password %}
<p class="message">{% blocktrans %}This is where you can change your password. Make sure you remember it!{% endblocktrans %}</p>
{% endif %}
{% if has_password %}
<p class="message">{% blocktrans %}This is where you can change your password. Make sure you remember it!{% endblocktrans %}</p>
{% endif %}
})
return render_to_response('auth/auth_settings.html', {
})
return render_to_response('auth/auth_settings.html', {
'form': form,
'has_password': user_.has_usable_password(),
'auth_keys': auth_keys_list,
'form': form,
'has_password': user_.has_usable_password(),
'auth_keys': auth_keys_list,