From 9b8a3f21ab54b09b7bb1a5972be938115b9d9c23 Mon Sep 17 00:00:00 2001 From: justcool393 Date: Wed, 5 Oct 2022 23:56:37 -0700 Subject: [PATCH] templateend hats, marseys, apps, notifications, etc --- files/templates/comments.html | 6 +++--- files/templates/notifications.html | 2 +- files/templates/post_admin_actions_mobile.html | 2 +- files/templates/submission.html | 2 +- files/templates/submit_hats.html | 2 +- files/templates/submit_marseys.html | 2 +- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/files/templates/comments.html b/files/templates/comments.html index fefc030e2..95c3d504a 100644 --- a/files/templates/comments.html +++ b/files/templates/comments.html @@ -490,7 +490,7 @@ {% endif %} -{% if v.admin_level > 1 and c.oauth_app %} +{% if v.admin_level >= PERMS['APPS_MODERATE'] and c.oauth_app %} API App {% endif %} @@ -567,7 +567,7 @@ {% if request.path.startswith('/notifications') and c.level == 1 and c.sentto and not c.parent_submission and c.author_id != AUTOJANNY_ID %} - {% if (v and v.admin_level >= 2) and (c.sentto == 2) and not c.author.is_muted %} + {% if (v and v.admin_level >= PERMS['USER_BAN']) and (c.sentto == 2) and not c.author.is_muted %} Mute {% endif %} @@ -720,7 +720,7 @@ Approve {% endif %} - {% if c.oauth_app %} + {% if c.oauth_app and v.admin_level >= PERMS['APPS_MODERATE'] %} API App {% endif %} diff --git a/files/templates/notifications.html b/files/templates/notifications.html index 6c53ebd0e..5093935ae 100644 --- a/files/templates/notifications.html +++ b/files/templates/notifications.html @@ -37,7 +37,7 @@ {% endif %} - {% if v.admin_level >= 2 %} + {% if v.admin_level >= PERMS['VIEW_MODMAIL'] %}