From d0ebece3592f4da052f2407626824e8f89129b45 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Mon, 8 Apr 2019 11:32:52 +0200 Subject: [PATCH] Members of the owner group cannot be banned --- wcfsetup/install/files/lib/system/WCF.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.20.1