only show custom domain to user with can_use_custom_domain flag

This commit is contained in:
Son NK 2019-12-02 00:13:56 +00:00
parent a827b27215
commit 8850f72a1c
1 changed files with 6 additions and 0 deletions

View File

@ -50,6 +50,12 @@
<i class="dropdown-icon fe fe-chrome"></i> API Key
</a>
{% if current_user.can_use_custom_domain %}
<a class="dropdown-item" href="{{ url_for('dashboard.custom_domain') }}">
<i class="dropdown-icon fe fe-server"></i> Custom Domains
</a>
{% endif %}
{% if current_user.is_premium() %}
<a class="dropdown-item" href="{{ url_for('dashboard.billing') }}">
<i class="dropdown-icon fe fe-dollar-sign"></i> Billing