Sha256: 7bf9ea6f720ba79ef926f3892364b041279ed6aa6026bd453409077479f409d9
Contents?: true
Size: 463 Bytes
Versions: 11
Compression:
Stored size: 463 Bytes
Contents
# frozen_string_literal: true module Thredded module UserPermissions module Moderate module IfModeratorColumnTrue extend ActiveSupport::Concern # @return [ActiveRecord::Relation<Thredded::Messageboard>] messageboards that the user can moderate def thredded_can_moderate_messageboards send(Thredded.moderator_column) ? Thredded::Messageboard.all : Thredded::Messageboard.none end end end end end
Version data entries
11 entries across 11 versions & 2 rubygems