]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
let author see own spam
authorEvan Prodromou <evan@status.net>
Tue, 24 Apr 2012 01:25:53 +0000 (21:25 -0400)
committerEvan Prodromou <evan@status.net>
Tue, 24 Apr 2012 01:25:53 +0000 (21:25 -0400)
classes/Notice.php

index 97193dbb3439a54af8613029c8b6f6d30f07a53f..5b1bdcbdad98ec155c70e332015376efc52ac076 100644 (file)
@@ -2474,7 +2474,7 @@ class Notice extends Managed_DataObject
             $author = $this->getProfile();
 
             if ($author->hasRole(Profile_role::SILENCED)) {
-                if (empty($profile) || !$profile->hasRight(Right::REVIEWSPAM)) {
+                if (empty($profile) || (($profile->id !== $author->id) && (!$profile->hasRight(Right::REVIEWSPAM)))) {
                     return true;
                 }
             }