From fc5f8e888c9ccfda7d739493c439437a917b9902 Mon Sep 17 00:00:00 2001
From: Vitaly Takmazov
Date: Wed, 26 Apr 2023 09:34:29 +0300
Subject: Expose 'isAdmin' user property over API
---
src/main/resources/templates/views/partial/usercolumn.html | 2 +-
src/main/resources/templates/views/thread.html | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
(limited to 'src/main/resources/templates')
diff --git a/src/main/resources/templates/views/partial/usercolumn.html b/src/main/resources/templates/views/partial/usercolumn.html
index aec72c58..70d20083 100644
--- a/src/main/resources/templates/views/partial/usercolumn.html
+++ b/src/main/resources/templates/views/partial/usercolumn.html
@@ -27,7 +27,7 @@
Block
{% endif %}
- {% if visitor.premium or beans.userServiceImpl.isAdminUser(visitor) %}
+ {% if visitor.premium or visitor.admin %}
{% if isInWL %}
diff --git a/src/main/resources/templates/views/thread.html b/src/main/resources/templates/views/thread.html
index 3974fddb..19d81d75 100644
--- a/src/main/resources/templates/views/thread.html
+++ b/src/main/resources/templates/views/thread.html
@@ -40,7 +40,7 @@
{% endif %}