Add user config rejecting admin domain block settings
This commit is contained in:
parent
a4332babb5
commit
3a1c73f607
8 changed files with 37 additions and 14 deletions
|
@ -139,6 +139,7 @@ class User < ApplicationRecord
|
|||
:advanced_layout, :use_blurhash, :use_pending_items, :trends, :crop_images,
|
||||
:disable_swiping, :always_send_emails, :public_post_to_unlisted,
|
||||
:reject_public_unlisted_subscription, :reject_unlisted_subscription,
|
||||
:send_without_domain_blocks,
|
||||
to: :settings, prefix: :setting, allow_nil: false
|
||||
|
||||
delegate :can?, to: :role
|
||||
|
@ -328,6 +329,10 @@ class User < ApplicationRecord
|
|||
settings.reject_unlisted_subscription
|
||||
end
|
||||
|
||||
def send_without_domain_blocks?
|
||||
settings.send_without_domain_blocks
|
||||
end
|
||||
|
||||
def allows_report_emails?
|
||||
settings.notification_emails['report']
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue