fixup check on profile notice stream

This commit is contained in:
Evan Prodromou 2012-04-23 21:01:34 -04:00
parent 4746016dd5
commit 2eed1e2ae2
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->id !== $this->streamProfile->id) && !$this->userProfile->hasRight(Right::REVIEWSPAM))) {
(empty($this->userProfile) || (($this->userProfile->id !== $this->streamProfile->id) && !$this->userProfile->hasRight(Right::REVIEWSPAM)))) {
return true;
}
}