Module: Thredded::UserPermissions::Message::ReadersOfWriteableBoards

Included in:
NullUser, Thredded::UserExtender
Defined in:
app/models/thredded/user_permissions/message/readers_of_writeable_boards.rb

Instance Method Summary collapse

Instance Method Details

#thredded_can_message_usersActiveRecord::Relation<Thredded.user_class>

Returns the users this user can include in a private topic.

Returns:

  • (ActiveRecord::Relation<Thredded.user_class>)

    the users this user can include in a private topic


8
9
10
11
# File 'app/models/thredded/user_permissions/message/readers_of_writeable_boards.rb', line 8

def thredded_can_message_users  # By default, return everyone who can read the messageboards this user can post in

  Thredded.user_class.thredded_messageboards_readers(thredded_can_write_messageboards)
end