Module: Thredded::UserPermissions::Moderate::None

Extended by:
ActiveSupport::Concern
Included in:
NullUser
Defined in:
app/models/thredded/user_permissions/moderate/none.rb

Instance Method Summary collapse

Instance Method Details

#thredded_can_moderate_messageboard?(messageboard) ⇒ false

Returns Whether the user can moderate the given messageboard.

Parameters:

Returns:

  • (false)

    Whether the user can moderate the given messageboard.



16
17
18
# File 'app/models/thredded/user_permissions/moderate/none.rb', line 16

def thredded_can_moderate_messageboard?(messageboard) # rubocop:disable Lint/UnusedMethodArgument
  false
end

#thredded_can_moderate_messageboardsActiveRecord::Relation<Thredded::Messageboard>

Returns messageboards that the user can moderate.

Returns:



10
11
12
# File 'app/models/thredded/user_permissions/moderate/none.rb', line 10

def thredded_can_moderate_messageboards
  Thredded::Messageboard.none
end