Hide signatures of banned users
authorMarcel Werk <burntime@woltlab.com>
Tue, 14 Mar 2017 18:12:10 +0000 (19:12 +0100)
committerMarcel Werk <burntime@woltlab.com>
Tue, 14 Mar 2017 18:12:10 +0000 (19:12 +0100)
close #2207

wcfsetup/install/files/lib/data/user/UserProfile.class.php

index 21fe9c19bd01456c2fc685768ad02761aa39d5b3..b67084bb38f1e001b9fd3f64b786919f974ccfc7 100644 (file)
@@ -711,6 +711,7 @@ class UserProfile extends DatabaseObjectDecorator implements ITitledLinkObject {
        public function showSignature() {
                if (!$this->signature) return false;
                if ($this->disableSignature) return false;
+               if ($this->banned) return false;
                if (WCF::getUser()->userID && !WCF::getUser()->showSignature) return false;
                
                return true;