Sha256: 4a61a01609734539af6ce57a9a8f5725cb7532c9787290528236b8f2b389979d
Contents?: true
Size: 577 Bytes
Versions: 12
Compression:
Stored size: 577 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_process) end end end end end end
Version data entries
12 entries across 12 versions & 2 rubygems