Members of the owner group cannot be banned
authorAlexander Ebert <ebert@woltlab.com>
Mon, 8 Apr 2019 09:32:52 +0000 (11:32 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Mon, 8 Apr 2019 09:32:52 +0000 (11:32 +0200)
wcfsetup/install/files/lib/system/WCF.class.php

index ae237084346dadd20841f583735e009de748f38e..dfb45d3915fac3e1a5b129ec0785c3234b6827ff 100644 (file)
@@ -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);
                        }