From: Alexander Ebert Date: Mon, 8 Apr 2019 09:32:52 +0000 (+0200) Subject: Members of the owner group cannot be banned X-Git-Tag: 5.2.0_Alpha_1~136^2~10 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d0ebece3592f4da052f2407626824e8f89129b45;p=GitHub%2FWoltLab%2FWCF.git Members of the owner group cannot be banned --- diff --git a/wcfsetup/install/files/lib/system/WCF.class.php b/wcfsetup/install/files/lib/system/WCF.class.php index ae23708434..dfb45d3915 100644 --- a/wcfsetup/install/files/lib/system/WCF.class.php +++ b/wcfsetup/install/files/lib/system/WCF.class.php @@ -483,7 +483,7 @@ class WCF { } // handle banned users - if (self::getUser()->userID && self::getUser()->banned) { + if (self::getUser()->userID && self::getUser()->banned && !self::getUser()->hasOwnerAccess()) { if ($isAjax) { throw new AJAXException(self::getLanguage()->getDynamicVariable('wcf.user.error.isBanned'), AJAXException::INSUFFICIENT_PERMISSIONS); }