fix capitalizaation

master
Aevann 2023-03-25 23:13:47 +02:00
parent 96330210e8
commit 312abdee28
3 changed files with 3 additions and 3 deletions

View File

@ -502,7 +502,7 @@ PERMS = { # Minimum admin_level to perform action.
'VIEW_PATRONS': 5,
'BLACKJACK_NOTIFICATIONS': 5,
'IGNORE_BADGE_BLACKLIST': 5,
'enable_dm_images': 5,
'ENABLE_DM_IMAGES': 5,
'SEE_GHOST_VOTES': 5,
'MODS_EVERY_HOLE': 6,

View File

@ -44,7 +44,7 @@ def loggedout_list(v):
@app.get('/admin/dm_images')
@limiter.limit(DEFAULT_RATELIMIT)
@limiter.limit(DEFAULT_RATELIMIT, key_func=get_ID)
@admin_level_required(PERMS['enable_dm_images'])
@admin_level_required(PERMS['ENABLE_DM_IMAGES'])
def dm_images(v):
with open(f"{LOG_DIRECTORY}/dm_images.log", "r", encoding="utf-8") as f:
items=f.read().split("\n")[:-1]

View File

@ -37,7 +37,7 @@
<h4>Content</h4>
<ul>
{% if v.admin_level >= PERMS['enable_dm_images'] %}
{% if v.admin_level >= PERMS['ENABLE_DM_IMAGES'] %}
<li><a href="/admin/dm_images">DM Images</a></li>
{% endif %}
<li><a href="/log">Moderation Log</a></li>