Add UserRole#bypass_block?
method for notification check (#32974)
This commit is contained in:
parent
ca39069433
commit
74496838e7
2 changed files with 5 additions and 1 deletions
|
@ -132,7 +132,7 @@ class NotifyService < BaseService
|
|||
end
|
||||
|
||||
def from_staff?
|
||||
@sender.local? && @sender.user.present? && @sender.user_role&.overrides?(@recipient.user_role) && @sender.user_role&.highlighted? && @sender.user_role&.can?(*UserRole::Flags::CATEGORIES[:moderation])
|
||||
@sender.local? && @sender.user.present? && @sender.user_role&.bypass_block?(@recipient.user_role)
|
||||
end
|
||||
|
||||
def from_self?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue