From: Evan Prodromou Date: Tue, 24 Apr 2012 01:25:53 +0000 (-0400) Subject: let author see own spam X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=5f2b62927c0cf340e26bd48037db7144125da7f4;p=quix0rs-gnu-social.git let author see own spam --- diff --git a/classes/Notice.php b/classes/Notice.php index 97193dbb34..5b1bdcbdad 100644 --- a/classes/Notice.php +++ b/classes/Notice.php @@ -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; } }