Skip to content

Commit

Permalink
Display download option on account page only if one has the appropria…
Browse files Browse the repository at this point in the history
…te rights
  • Loading branch information
Henjuro committed May 29, 2018
1 parent 8652249 commit f260626
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions templates/settings/accounts.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
{% endblock %}

{% block raw_content %}
{% if perm_manager.get_permission('accounts_download_list').can() %}
<div class="row mb-2">
<form class="form-inline" target="_blank" method="GET" action="{{url_for('accounts_v1.download_get_v1')}}">
<label for="include_disabled_cbx">Disabled Accounts</label>
Expand All @@ -47,6 +48,7 @@
<button type="submit" class="btn btn.primary">Download Full Commander List</button>
</form>
</div>
{% endif %}
<div class="row mb-2">
<div class="btn-group" role="group" aria-label="Account Actions">
<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#modal-account-create">New Account</button>
Expand Down

0 comments on commit f260626

Please sign in to comment.