Sha256: f517c2a876b974479ebb23660231ab46e290b622eaa1b642ba96a01f1d63559c

Contents?: true

Size: 813 Bytes

Versions: 11

Compression:

Stored size: 813 Bytes

Contents

# frozen_string_literal: true

module Thredded
  module UserPermissions
    module Moderate
      module None
        extend ActiveSupport::Concern
        included { extend ClassMethods }

        # @return [ActiveRecord::Relation<Thredded::Messageboard>] messageboards that the user can moderate
        def thredded_can_moderate_messageboards
          Thredded::Messageboard.none
        end

        module ClassMethods
          # Users that can moderate the given messageboards.
          #
          # @param _messageboards [Array<Thredded::Messageboard>]
          # @return [ActiveRecord::Relation<Thredded.user_class>] users that can moderate the given messageboards
          def thredded_messageboards_moderators(_messageboards)
            none
          end
        end
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
thredded-0.13.7 app/models/thredded/user_permissions/moderate/none.rb
thredded-0.13.6 app/models/thredded/user_permissions/moderate/none.rb
thredded-0.13.5 app/models/thredded/user_permissions/moderate/none.rb
thredded-0.13.4 app/models/thredded/user_permissions/moderate/none.rb
thredded-0.13.3 app/models/thredded/user_permissions/moderate/none.rb
thredded-0.13.2 app/models/thredded/user_permissions/moderate/none.rb
thredded-0.13.1 app/models/thredded/user_permissions/moderate/none.rb
thredded-0.13.0 app/models/thredded/user_permissions/moderate/none.rb
thredded-0.12.4 app/models/thredded/user_permissions/moderate/none.rb
thredded-0.12.3 app/models/thredded/user_permissions/moderate/none.rb
thredded-0.12.2 app/models/thredded/user_permissions/moderate/none.rb