allow user to review their own profile stream even if silenced

This commit is contained in:
Evan Prodromou 2012-04-17 12:00:51 -04:00
parent 558e33436c
commit ae885c0e00
1 changed files with 1 additions and 1 deletions

View File

@ -95,7 +95,7 @@ class ProfileNoticeStream extends ScopingNoticeStream
if (common_config('notice', 'hidespam')) {
if ($this->streamProfile->hasRole(Profile_role::SILENCED) &&
(empty($this->userProfile) || !$this->userProfile->hasRight(Right::REVIEWSPAM))) {
(empty($this->userProfile) || ($this->userProfile->id !== $this->streamProfile->id) && !$this->userProfile->hasRight(Right::REVIEWSPAM))) {
return true;
}
}