app/models/thredded/user_permissions/moderate/none.rb in thredded-0.13.7 vs app/models/thredded/user_permissions/moderate/none.rb in thredded-0.13.8
- old
+ new
@@ -3,24 +3,13 @@
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