Use snake_case for method names

This commit is contained in:
rubenwardy
2023-06-19 21:27:49 +01:00
parent 16f93b3e13
commit 45ed12ddf0
53 changed files with 390 additions and 387 deletions

View File

@@ -147,10 +147,10 @@
{{ _("Statistics") }}
</a>
</li>
{% if current_user.rank.atLeast(current_user.rank.EDITOR) or check_global_perm(current_user, "CREATE_TAG") %}
{% if current_user.rank.at_least(current_user.rank.EDITOR) or check_global_perm(current_user, "CREATE_TAG") %}
<li class="dropdown-divider"></li>
{% endif %}
{% if current_user.rank.atLeast(current_user.rank.MODERATOR) %}
{% if current_user.rank.at_least(current_user.rank.MODERATOR) %}
<li class="nav-item">
<a class="nav-link" href="{{ url_for('admin.audit') }}">
{{ _("Audit Log") }}
@@ -164,7 +164,7 @@
{% endif %}
{% endif %}
{% endif %}
{% if current_user.rank.atLeast(current_user.rank.EDITOR) %}
{% if current_user.rank.at_least(current_user.rank.EDITOR) %}
<li class="nav-item"><a class="nav-link" href="{{ url_for('admin.restore') }}">{{ _("Restore Package") }}</a></li>
{% endif %}
{% if check_global_perm(current_user, "EDIT_TAGS") %}