git.gnu.io has moved to IP address 209.51.188.249 -- please double check where you are logging in.

Commit ae885c0e authored by Evan Prodromou's avatar Evan Prodromou

allow user to review their own profile stream even if silenced

parent 558e3343
......@@ -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;
}
}
......
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