Sha256: 396fa0b19d4f17325e665a75291cc6041224014bb2d00c700d0abc999944cfa7
Contents?: true
Size: 575 Bytes
Versions: 34
Compression:
Stored size: 575 Bytes
Contents
# frozen_string_literal: true module Decidim module Comments module Abilities # Defines the abilities related to comments for a logged in process moderator user. # Intended to be used with `cancancan`. class ParticipatoryProcessModeratorAbility < Decidim::Abilities::ParticipatoryProcessModeratorAbility def define_participatory_process_abilities super can [: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