Sha256: b694e15a8782c15dca1ccc3e5404f316821c6a6fc709e0212b9a69fc21764e35
Contents?: true
Size: 1015 Bytes
Versions: 37
Compression:
Stored size: 1015 Bytes
Contents
# frozen_string_literal: true module Decidim module Admin # This controller allows admin users to manage all moderations from the # participatory spaces they have access to. class GlobalModerationsController < Decidim::Admin::ModerationsController layout "decidim/admin/global_moderations" include Decidim::Admin::GlobalModerationContext # Private: This method is used by the `Filterable` concern as the base query # without applying filtering and/or sorting options. def collection @collection ||= if params[:hidden] moderations_for_user.hidden else moderations_for_user.not_hidden end end # Private: fins the reportable of the specific moderation the user is # trying to manage. # # Returns a resource implementing the `Decidim::Reportable` concern. def reportable @reportable ||= moderations_for_user.find(params[:id]).reportable end end end end
Version data entries
37 entries across 37 versions & 1 rubygems