decidim-comments 0.11.2 → 0.12.0.pre

Sign up to get free protection for your applications and to get access to all the features.
@@ -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