Skip to content

Commit 6bfa9c2

Browse files
alexrlpzfblupi
andauthored
Restrict vote comment action (#59)
* Restrict vote_comment action * Update translations * Lint --------- Co-authored-by: Fran Bolívar <francisco.bolivar@nazaries.com>
1 parent 7f6da0e commit 6bfa9c2

32 files changed

Lines changed: 47 additions & 16 deletions

File tree

decidim-accountability/config/locales/ca.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,7 @@ ca:
252252
accountability:
253253
actions:
254254
comment: Comentar
255+
vote_comment: Votar el comentari
255256
name: Seguiment
256257
settings:
257258
global:

decidim-accountability/config/locales/en.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,7 @@ en:
253253
accountability:
254254
actions:
255255
comment: Comment
256+
vote_comment: Vote comment
256257
name: Accountability
257258
settings:
258259
global:

decidim-accountability/config/locales/es.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,7 @@ es:
252252
accountability:
253253
actions:
254254
comment: Comentar
255+
vote_comment: Votar comentario
255256
name: Seguimiento
256257
settings:
257258
global:

decidim-accountability/lib/decidim/accountability/component.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@
1414
end
1515

1616
# These actions permissions can be configured in the admin panel
17-
component.actions = %w(comment)
17+
component.actions = %w(comment vote_comment)
1818

1919
component.register_resource(:result) do |resource|
2020
resource.model_class_name = "Decidim::Accountability::Result"
2121
resource.template = "decidim/accountability/results/linked_results"
2222
resource.card = "decidim/accountability/result"
2323
resource.searchable = false
24-
resource.actions = %w(comment)
24+
resource.actions = %w(comment vote_comment)
2525
end
2626

2727
component.settings(:global) do |settings|

decidim-blogs/config/locales/ca.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ ca:
7676
destroy: Esborrar
7777
endorse: Adherir-se
7878
update: Actualitzar
79+
vote_comment: Votar el comentari
7980
name: Blog
8081
settings:
8182
global:

decidim-blogs/config/locales/en.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ en:
7676
destroy: Delete
7777
endorse: Endorse
7878
update: Update
79+
vote_comment: Vote comment
7980
name: Blog
8081
settings:
8182
global:

decidim-blogs/config/locales/es.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ es:
7676
destroy: Borrar
7777
endorse: Adherirse
7878
update: Actualizar
79+
vote_comment: Votar comentario
7980
name: Blog
8081
settings:
8182
global:

decidim-blogs/lib/decidim/blogs/component.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
component.register_resource(:blogpost) do |resource|
3636
resource.model_class_name = "Decidim::Blogs::Post"
3737
resource.card = "decidim/blogs/post"
38-
resource.actions = %w(endorse comment)
38+
resource.actions = %w(endorse comment vote_comment)
3939
resource.searchable = true
4040
end
4141

decidim-budgets/config/locales/ca.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -341,6 +341,7 @@ ca:
341341
actions:
342342
comment: Comentar
343343
vote: Vota
344+
vote_comment: Votar el comentari
344345
name: Pressupostos
345346
settings:
346347
global:

decidim-budgets/config/locales/en.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -339,6 +339,7 @@ en:
339339
actions:
340340
comment: Comment
341341
vote: Vote
342+
vote_comment: Vote comment
342343
name: Budgets
343344
settings:
344345
global:

0 commit comments

Comments
 (0)