decidim-comments 0.11.2 → 0.12.0.pre

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,19 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Decidim
4
- module Comments
5
- module Abilities
6
- # Defines the abilities related to comments for a logged in process moderator user.
7
- # Intended to be used with `cancancan`.
8
- class ParticipatoryProcessModeratorAbility < Decidim::Abilities::ParticipatoryProcessModeratorAbility
9
- def define_participatory_process_abilities
10
- super
11
-
12
- can [:unreport, :hide], Comment do |comment|
13
- can_manage_process?(comment.component.participatory_space)
14
- end
15
- end
16
- end
17
- end
18
- end
19
- end