Sha256: c8d31afcc1fae8e448ab7db596ffa8b6d570b6af1bbbe588d8762a6c7ba4b131

Contents?: true

Size: 510 Bytes

Versions: 23

Compression:

Stored size: 510 Bytes

Contents

# frozen_string_literal: true
module Thredded
  module UserPermissions
    module Message
      module ReadersOfWriteableBoards
        # @return [ActiveRecord::Relation<Thredded.user_class>] the users this user can include in a private topic
        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
      end
    end
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
thredded-0.12.1 app/models/thredded/user_permissions/message/readers_of_writeable_boards.rb
thredded-0.12.0 app/models/thredded/user_permissions/message/readers_of_writeable_boards.rb
thredded-0.11.1 app/models/thredded/user_permissions/message/readers_of_writeable_boards.rb
thredded-0.11.0 app/models/thredded/user_permissions/message/readers_of_writeable_boards.rb
thredded-0.10.1 app/models/thredded/user_permissions/message/readers_of_writeable_boards.rb
thredded-0.10.0 app/models/thredded/user_permissions/message/readers_of_writeable_boards.rb
thredded-0.9.4 app/models/thredded/user_permissions/message/readers_of_writeable_boards.rb
thredded-0.9.3 app/models/thredded/user_permissions/message/readers_of_writeable_boards.rb
thredded-0.9.2 app/models/thredded/user_permissions/message/readers_of_writeable_boards.rb
thredded-0.9.1 app/models/thredded/user_permissions/message/readers_of_writeable_boards.rb
thredded-0.8.4 app/models/thredded/user_permissions/message/readers_of_writeable_boards.rb
thredded-0.8.2 app/models/thredded/user_permissions/message/readers_of_writeable_boards.rb
thredded-0.7.0 app/models/thredded/user_permissions/message/readers_of_writeable_boards.rb
thredded-0.6.3 app/models/thredded/user_permissions/message/readers_of_writeable_boards.rb
thredded-0.6.2 app/models/thredded/user_permissions/message/readers_of_writeable_boards.rb
thredded-0.6.1 app/models/thredded/user_permissions/message/readers_of_writeable_boards.rb
thredded-0.6.0 app/models/thredded/user_permissions/message/readers_of_writeable_boards.rb
thredded-0.5.1 app/models/thredded/user_permissions/message/readers_of_writeable_boards.rb
thredded-0.5.0 app/models/thredded/user_permissions/message/readers_of_writeable_boards.rb
thredded-0.4.0 app/models/thredded/user_permissions/message/readers_of_writeable_boards.rb