Skip to content

Commit

Permalink
[#3012] Do not show apikey for unauthorized users
Browse files Browse the repository at this point in the history
  • Loading branch information
tobes committed Nov 9, 2012
1 parent ae5edb7 commit 8c09a04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ckan/templates/user/read.html
Expand Up @@ -107,7 +107,7 @@ <h1 class="heading">{{ user.fullname or _('No full name provided') }}</h1>
<dt>{{ _('Member Since') }}</dt>
<dd>{{ h.render_datetime(user.created) }}</dd>
</dl>
{% if c.is_myself %}
{% if c.is_myself and (not g.authorized_users_only or user.authorized) %}
<dl>
<dt class="key">{{ _('API Key') }} <span class="label" title="{{ _('This means only you can see this') }}">{{ _('Private') }}</span></dt>
<dd class="value"><code>{{ user.apikey }}</code></dd>
Expand Down

0 comments on commit 8c09a04

Please sign in to comment.