From 5f2b62927c0cf340e26bd48037db7144125da7f4 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Mon, 23 Apr 2012 21:25:53 -0400 Subject: [PATCH] let author see own spam --- classes/Notice.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } }