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.
- checksums.yaml +4 -4
- data/app/assets/javascripts/decidim/comments/bundle.js +267 -1
- data/app/assets/javascripts/decidim/comments/bundle.js.map +1 -1
- data/app/commands/decidim/comments/create_comment.rb +1 -3
- data/app/frontend/comments/comment.component.tsx +3 -3
- data/app/frontend/comments/comments.component.tsx +1 -1
- data/app/models/decidim/comments/comment.rb +2 -0
- data/app/types/decidim/comments/commentable_type.rb +1 -1
- data/config/locales/ca.yml +15 -0
- data/config/locales/en.yml +15 -0
- data/config/locales/es.yml +15 -0
- data/config/locales/eu.yml +15 -0
- data/config/locales/fi.yml +15 -0
- data/config/locales/fr.yml +15 -0
- data/config/locales/gl.yml +15 -0
- data/config/locales/it.yml +15 -0
- data/config/locales/nl.yml +15 -0
- data/config/locales/pl.yml +19 -0
- data/config/locales/pt-BR.yml +15 -0
- data/config/locales/pt.yml +15 -0
- data/config/locales/ru.yml +19 -0
- data/config/locales/sv.yml +15 -0
- data/config/locales/uk.yml +19 -0
- data/lib/decidim/comments/admin_engine.rb +0 -10
- data/lib/decidim/comments/api/comment_type.rb +2 -2
- data/lib/decidim/comments/engine.rb +2 -8
- data/lib/decidim/comments/version.rb +1 -1
- metadata +10 -14
- data/app/models/decidim/comments/abilities/admin_ability.rb +0 -19
- data/app/models/decidim/comments/abilities/current_user_ability.rb +0 -24
- data/app/models/decidim/comments/abilities/participatory_process_admin_ability.rb +0 -19
- data/app/models/decidim/comments/abilities/participatory_process_moderator_ability.rb +0 -19
@@ -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
|