Sha256: ed63f638f908d07faec18d312d30a7f277c82957841d7399db99b910e1eaa590
Contents?: true
Size: 576 Bytes
Versions: 34
Compression:
Stored size: 576 Bytes
Contents
# frozen_string_literal: true module Decidim module Proposals module Abilities # Defines the abilities related to proposals for a logged in process admin user. # Intended to be used with `cancancan`. class ParticipatoryProcessModeratorAbility < Decidim::Abilities::ParticipatoryProcessModeratorAbility def define_participatory_process_abilities super can [:unreport, :hide], Proposal do |proposal| can_manage_process?(proposal.feature.participatory_space) end end end end end end
Version data entries
34 entries across 34 versions & 2 rubygems