From db45294a3e4814228f65c702bfbbd3a2e2af20a0 Mon Sep 17 00:00:00 2001 From: Astrologies Date: Fri, 31 Dec 2021 03:29:07 -0500 Subject: [PATCH] UserModerationManager impl --- globals/Dependencies/Moderation/UserModerationManager.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/globals/Dependencies/Moderation/UserModerationManager.php b/globals/Dependencies/Moderation/UserModerationManager.php index 3a776fc..f72cfad 100644 --- a/globals/Dependencies/Moderation/UserModerationManager.php +++ b/globals/Dependencies/Moderation/UserModerationManager.php @@ -29,7 +29,7 @@ namespace Alphaland\Moderation { public static function UnbanUser(int $uid) { - if($GLOBALS['user']->isStaff()) { + if($GLOBALS['user']->IsStaff()) { if (userExists($uid)) { $unban = $GLOBALS['pdo']->prepare("DELETE FROM user_bans WHERE uid = :u"); $unban->bindParam(":u", $uid, PDO::PARAM_INT); @@ -46,7 +46,7 @@ namespace Alphaland\Moderation { // Nikita: TODO: Convert the bantype to a an enum public static function BanUser(int $uid, string $reason, int $banexpiration, int $bantype) { - if($GLOBALS['user']->isStaff()) { + if($GLOBALS['user']->IsStaff()) { if (userExists($uid)) { $isstaffcheck = $GLOBALS['pdo']->prepare("SELECT * FROM `users` WHERE `id` = :i AND `rank` > 0"); $isstaffcheck->bindParam(":i", $uid, PDO::PARAM_INT);