Sha256: 11008f1a6083ab5f3bdff7ddbadbc3417160aac2834daee264f10432d9440799
Contents?: true
Size: 572 Bytes
Versions: 34
Compression:
Stored size: 572 Bytes
Contents
# frozen_string_literal: true module Decidim module Comments module Abilities # Defines the abilities related to comments for a logged in process admin user. # Intended to be used with `cancancan`. class ParticipatoryProcessAdminAbility < Decidim::Abilities::ParticipatoryProcessAdminAbility def define_participatory_process_abilities super can [:manage, :unreport, :hide], Comment do |comment| can_manage_process?(comment.feature.participatory_space) end end end end end end
Version data entries
34 entries across 34 versions & 2 rubygems