only show API secret form if there is an API secret set
This commit is contained in:
parent
f6d38f7b94
commit
1a6f31031a
1 changed files with 1 additions and 1 deletions
|
@ -23,7 +23,7 @@
|
|||
</p>
|
||||
{% endif %}
|
||||
|
||||
{% if request.user_permissions.grant_permissions or request.user == user %}
|
||||
{% if request.user_permissions.grant_permissions or request.user == user and user.permissions.api_secret %}
|
||||
<h4>{% trans 'API secret' %}</h4>
|
||||
<p>
|
||||
{% if user.permissions.api_secret %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue