Commit 5f2b6292 authored by Evan Prodromou's avatar Evan Prodromou

let author see own spam

parent ffc2c72b
......@@ -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;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment