From fccc2894d5775d045f557a289a6a4713346a8cad Mon Sep 17 00:00:00 2001 From: ilotterytea Date: Fri, 16 May 2025 01:18:24 +0500 Subject: fix: remove report buttons on disabled REPORTS_ENABLE --- public/emotes/index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'public/emotes/index.php') diff --git a/public/emotes/index.php b/public/emotes/index.php index 73aa996..9501f04 100644 --- a/public/emotes/index.php +++ b/public/emotes/index.php @@ -315,8 +315,8 @@ if (CLIENT_REQUIRES_JSON) { } } } - if ($_SESSION["user_role"]["permission_report"]) { - echo 'Report emote'; + if (REPORTS_ENABLE && $_SESSION["user_role"]["permission_report"]) { + echo "Report emote"; } } ?> -- cgit v1.2.3