only show "create custom alias" button to users who can

This commit is contained in:
Son NK 2019-07-07 22:45:15 +02:00
parent 94d92a0e87
commit 4883ace2ed
1 changed files with 5 additions and 3 deletions

View File

@ -21,9 +21,11 @@
<button class="btn btn-success">Create random alias</button>
</form>
<a href="{{ url_for('dashboard.custom_alias') }}" class="btn btn-primary">
Create custom alias
</a>
{% if current_user.can_create_custom_email() %}
<a href="{{ url_for('dashboard.custom_alias') }}" class="btn btn-primary">
Create custom alias
</a>
{% endif %}
</div>
<div class="row row-cards row-deck mt-4">