allow user to review their own profile stream even if silenced
This commit is contained in:
parent
558e33436c
commit
ae885c0e00
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user