let author see own spam
This commit is contained in:
parent
ffc2c72bc1
commit
5f2b62927c
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user