let author see own spam

This commit is contained in:
Evan Prodromou 2012-04-23 21:25:53 -04:00
parent ffc2c72bc1
commit 5f2b62927c

View 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;
}
}