decidim-budgets 0.29.1 → 0.29.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/commands/decidim/budgets/admin/import_proposals_to_budgets.rb +6 -2
- data/app/forms/decidim/budgets/admin/budget_form.rb +1 -1
- data/app/forms/decidim/budgets/admin/project_form.rb +1 -1
- data/app/forms/decidim/budgets/admin/project_import_proposals_form.rb +1 -1
- data/app/permissions/decidim/budgets/permissions.rb +2 -0
- data/app/views/decidim/budgets/projects/index.js.erb +10 -0
- data/config/locales/ar.yml +1 -3
- data/config/locales/bg.yml +1 -2
- data/config/locales/bn-BD.yml +1 -0
- data/config/locales/bs-BA.yml +22 -0
- data/config/locales/cs.yml +1 -1
- data/config/locales/de.yml +4 -4
- data/config/locales/el.yml +0 -1
- data/config/locales/es-MX.yml +1 -1
- data/config/locales/es-PY.yml +1 -1
- data/config/locales/eu.yml +93 -84
- data/config/locales/fi-plain.yml +15 -15
- data/config/locales/fi.yml +68 -68
- data/config/locales/fr-CA.yml +4 -4
- data/config/locales/fr.yml +3 -3
- data/config/locales/ga-IE.yml +0 -4
- data/config/locales/gl.yml +0 -7
- data/config/locales/hu.yml +2 -3
- data/config/locales/id-ID.yml +0 -3
- data/config/locales/is-IS.yml +0 -3
- data/config/locales/it.yml +0 -5
- data/config/locales/ko.yml +8 -0
- data/config/locales/lb.yml +0 -4
- data/config/locales/lt.yml +0 -1
- data/config/locales/lv.yml +0 -3
- data/config/locales/nl.yml +2 -3
- data/config/locales/no.yml +0 -7
- data/config/locales/pl.yml +0 -1
- data/config/locales/pt-BR.yml +2 -3
- data/config/locales/pt.yml +0 -5
- data/config/locales/ro-RO.yml +1 -2
- data/config/locales/ru.yml +0 -3
- data/config/locales/sk.yml +0 -3
- data/config/locales/sq-AL.yml +10 -3
- data/config/locales/sv.yml +3 -3
- data/config/locales/tr-TR.yml +0 -5
- data/config/locales/uk.yml +0 -3
- data/config/locales/zh-CN.yml +0 -5
- data/config/locales/zh-TW.yml +0 -1
- data/decidim-budgets.gemspec +1 -1
- data/lib/decidim/api/budget_type.rb +6 -0
- data/lib/decidim/api/budgets_type.rb +1 -3
- data/lib/decidim/api/project_type.rb +13 -0
- data/lib/decidim/budgets/version.rb +1 -1
- metadata +15 -13
data/config/locales/lb.yml
CHANGED
@@ -5,7 +5,6 @@ lb:
|
|
5
5
|
project:
|
6
6
|
budget_amount: Höhe des Budgets
|
7
7
|
decidim_category_id: Kategorie
|
8
|
-
decidim_scope_id: Umfang
|
9
8
|
description: Beschreibung
|
10
9
|
proposal_ids: Ähnliche Vorschläge
|
11
10
|
selected: Zur Implementierung ausgewählt
|
@@ -20,7 +19,6 @@ lb:
|
|
20
19
|
actions:
|
21
20
|
attachment_collections: Ordner
|
22
21
|
attachments: Anhänge
|
23
|
-
confirm_destroy: Möchten Sie dieses Projekt wirklich löschen?
|
24
22
|
destroy: Löschen
|
25
23
|
edit: Bearbeiten
|
26
24
|
edit_projects: Projekte verwalten
|
@@ -122,7 +120,6 @@ lb:
|
|
122
120
|
other: "%{count} Projekte"
|
123
121
|
filters:
|
124
122
|
category: Kategorie
|
125
|
-
scope: Umfang
|
126
123
|
search: Suche
|
127
124
|
status: Status
|
128
125
|
status_values:
|
@@ -162,7 +159,6 @@ lb:
|
|
162
159
|
more_information_modal: Weitere Informationen
|
163
160
|
projects_per_page: Projekte pro Seite
|
164
161
|
resources_permissions_enabled: Berechtigungen können für jedes Projekt festgelegt werden
|
165
|
-
scope_id: Bereich
|
166
162
|
scopes_enabled: Bereiche aktiviert
|
167
163
|
title: Titel
|
168
164
|
total_budget: Gesamtbudget; Gesamtetat
|
data/config/locales/lt.yml
CHANGED
data/config/locales/lv.yml
CHANGED
@@ -4,7 +4,6 @@ lv:
|
|
4
4
|
attributes:
|
5
5
|
project:
|
6
6
|
decidim_category_id: Kategorija
|
7
|
-
decidim_scope_id: Darbības tvērums
|
8
7
|
description: Apraksts
|
9
8
|
proposal_ids: Saistītie priekšlikumi
|
10
9
|
title: Nosaukums
|
@@ -19,7 +18,6 @@ lv:
|
|
19
18
|
actions:
|
20
19
|
attachment_collections: Mapes
|
21
20
|
attachments: Pielikumi
|
22
|
-
confirm_destroy: Vai tiešām vēlaties dzēst šo projektu?
|
23
21
|
destroy: Dzēst
|
24
22
|
edit: Labot
|
25
23
|
import: Importēt priekšlikumus projektos
|
@@ -80,7 +78,6 @@ lv:
|
|
80
78
|
other: "%{count} projekti"
|
81
79
|
filters:
|
82
80
|
category: Kategorija
|
83
|
-
scope: Darbības tvērums
|
84
81
|
search: Meklēt
|
85
82
|
orders:
|
86
83
|
highest_cost: Lielākās izmaksas
|
data/config/locales/nl.yml
CHANGED
@@ -11,7 +11,7 @@ nl:
|
|
11
11
|
project:
|
12
12
|
budget_amount: Budget bedrag
|
13
13
|
decidim_category_id: Categorie
|
14
|
-
decidim_scope_id:
|
14
|
+
decidim_scope_id: Scope
|
15
15
|
description: Beschrijving
|
16
16
|
proposal_ids: Verwante voorstellen
|
17
17
|
proposals: Voorstellen
|
@@ -41,7 +41,6 @@ nl:
|
|
41
41
|
actions:
|
42
42
|
attachment_collections: Mappen
|
43
43
|
attachments: Bijlagen
|
44
|
-
confirm_destroy: Weet u zeker dat u dit project wilt verwijderen?
|
45
44
|
destroy: Verwijderen
|
46
45
|
edit: Bewerk
|
47
46
|
edit_projects: Beheer projecten
|
@@ -177,7 +176,7 @@ nl:
|
|
177
176
|
title: Je hebt nog niet gestemd
|
178
177
|
filters:
|
179
178
|
category: Categorie
|
180
|
-
scope:
|
179
|
+
scope: Scope
|
181
180
|
search: Zoeken
|
182
181
|
status: Status
|
183
182
|
status_values:
|
data/config/locales/no.yml
CHANGED
@@ -3,7 +3,6 @@
|
|
3
3
|
activemodel:
|
4
4
|
attributes:
|
5
5
|
budget:
|
6
|
-
decidim_scope_id: Tema
|
7
6
|
description: Beskrivelse
|
8
7
|
title: Tittel
|
9
8
|
total_budget: Totalt budsjett
|
@@ -11,7 +10,6 @@
|
|
11
10
|
project:
|
12
11
|
budget_amount: Budsjettbeløp
|
13
12
|
decidim_category_id: Kategori
|
14
|
-
decidim_scope_id: Tema
|
15
13
|
description: Beskrivelse
|
16
14
|
proposal_ids: Relaterte forslag
|
17
15
|
selected: Utvalgt for implementering
|
@@ -27,8 +25,6 @@
|
|
27
25
|
projects:
|
28
26
|
category_id_eq:
|
29
27
|
label: Kategori
|
30
|
-
scope_id_eq:
|
31
|
-
label: Tema
|
32
28
|
selected_at_null:
|
33
29
|
label: Valgt
|
34
30
|
values:
|
@@ -38,7 +34,6 @@
|
|
38
34
|
actions:
|
39
35
|
attachment_collections: Mapper
|
40
36
|
attachments: Vedlegg
|
41
|
-
confirm_destroy: Er du sikker på at du vil slette dette prosjektet?
|
42
37
|
destroy: Slett
|
43
38
|
edit: Editar
|
44
39
|
edit_projects: Administrer prosjekter
|
@@ -158,7 +153,6 @@
|
|
158
153
|
title: Du har ikke stemt enda
|
159
154
|
filters:
|
160
155
|
category: Kategori
|
161
|
-
scope: Tema
|
162
156
|
search: Søk
|
163
157
|
status: Status
|
164
158
|
status_values:
|
@@ -207,7 +201,6 @@
|
|
207
201
|
more_information_modal: Mer informasjon
|
208
202
|
projects_per_page: Prosjekter per side
|
209
203
|
resources_permissions_enabled: Handlingstillatelser kan settes for hvert prosjekt
|
210
|
-
scope_id: Tema
|
211
204
|
scopes_enabled: Temaer aktivert
|
212
205
|
title: Tittel
|
213
206
|
total_budget: Totalt budsjett
|
data/config/locales/pl.yml
CHANGED
data/config/locales/pt-BR.yml
CHANGED
@@ -11,7 +11,7 @@ pt-BR:
|
|
11
11
|
project:
|
12
12
|
budget_amount: Valor do orçamento
|
13
13
|
decidim_category_id: Categoria
|
14
|
-
decidim_scope_id:
|
14
|
+
decidim_scope_id: Escopo
|
15
15
|
description: Descrição
|
16
16
|
proposal_ids: Propostas relacionadas
|
17
17
|
proposals: Propostas
|
@@ -44,7 +44,6 @@ pt-BR:
|
|
44
44
|
actions:
|
45
45
|
attachment_collections: Pastas
|
46
46
|
attachments: Anexos
|
47
|
-
confirm_destroy: Deseja mesmo excluir este projeto?
|
48
47
|
destroy: Excluir
|
49
48
|
edit: Editar
|
50
49
|
edit_projects: Gerenciar projetos
|
@@ -254,7 +253,7 @@ pt-BR:
|
|
254
253
|
title: Você ainda não votou
|
255
254
|
filters:
|
256
255
|
category: Categoria
|
257
|
-
scope:
|
256
|
+
scope: Escopo
|
258
257
|
search: Pesquisa
|
259
258
|
status: Status
|
260
259
|
status_values:
|
data/config/locales/pt.yml
CHANGED
@@ -3,7 +3,6 @@ pt:
|
|
3
3
|
activemodel:
|
4
4
|
attributes:
|
5
5
|
budget:
|
6
|
-
decidim_scope_id: Âmbito
|
7
6
|
description: Descrição
|
8
7
|
title: Título
|
9
8
|
total_budget: Orçamento total
|
@@ -11,7 +10,6 @@ pt:
|
|
11
10
|
project:
|
12
11
|
budget_amount: Valor do orçamento
|
13
12
|
decidim_category_id: Categoria
|
14
|
-
decidim_scope_id: Âmbito
|
15
13
|
description: Descrição
|
16
14
|
proposal_ids: Propostas relacionadas
|
17
15
|
selected: Seleccionado para implementação
|
@@ -26,7 +24,6 @@ pt:
|
|
26
24
|
actions:
|
27
25
|
attachment_collections: Pastas
|
28
26
|
attachments: Anexos
|
29
|
-
confirm_destroy: Tem certeza de que deseja eliminar este projeto?
|
30
27
|
destroy: Eliminar
|
31
28
|
edit: Editar
|
32
29
|
edit_projects: Gerir projectos
|
@@ -133,7 +130,6 @@ pt:
|
|
133
130
|
other: "%{count} projetos"
|
134
131
|
filters:
|
135
132
|
category: Categoria
|
136
|
-
scope: Âmbito
|
137
133
|
search: Pesquisar
|
138
134
|
status: Estado
|
139
135
|
status_values:
|
@@ -173,7 +169,6 @@ pt:
|
|
173
169
|
more_information_modal: Mais informações modal
|
174
170
|
projects_per_page: Projetos por página
|
175
171
|
resources_permissions_enabled: Permissões de acções podem ser definidas para cada projecto
|
176
|
-
scope_id: Âmbito
|
177
172
|
scopes_enabled: Âmbitos activados
|
178
173
|
title: Título
|
179
174
|
total_budget: Orçamento total
|
data/config/locales/ro-RO.yml
CHANGED
@@ -42,7 +42,6 @@ ro:
|
|
42
42
|
actions:
|
43
43
|
attachment_collections: Dosare
|
44
44
|
attachments: Atașamente
|
45
|
-
confirm_destroy: Sigur dorești să ştergi acest proiect?
|
46
45
|
destroy: Ștergere
|
47
46
|
edit: Editare
|
48
47
|
edit_projects: Gestionați proiectele
|
@@ -166,7 +165,7 @@ ro:
|
|
166
165
|
title: Nu ai votat încă
|
167
166
|
filters:
|
168
167
|
category: Categorie
|
169
|
-
scope: Domeniu
|
168
|
+
scope: Domeniu de interes
|
170
169
|
search: Caută
|
171
170
|
status: Stadiu
|
172
171
|
status_values:
|
data/config/locales/ru.yml
CHANGED
@@ -4,7 +4,6 @@ ru:
|
|
4
4
|
attributes:
|
5
5
|
project:
|
6
6
|
decidim_category_id: Категория
|
7
|
-
decidim_scope_id: Охват
|
8
7
|
description: Описание
|
9
8
|
proposal_ids: Подобные предложения
|
10
9
|
title: Название
|
@@ -20,7 +19,6 @@ ru:
|
|
20
19
|
actions:
|
21
20
|
attachment_collections: Папки
|
22
21
|
attachments: Прикрепленные файлы
|
23
|
-
confirm_destroy: Вы действительно хотите удалить этот проект?
|
24
22
|
destroy: Удалить
|
25
23
|
edit: Редактировать
|
26
24
|
import: Внести в проекты позаимствованные предложения
|
@@ -78,7 +76,6 @@ ru:
|
|
78
76
|
other: "%{count} проектов"
|
79
77
|
filters:
|
80
78
|
category: Категория
|
81
|
-
scope: Охват
|
82
79
|
search: Поиск
|
83
80
|
project_budget_button:
|
84
81
|
add: Добавить
|
data/config/locales/sk.yml
CHANGED
@@ -4,7 +4,6 @@ sk:
|
|
4
4
|
attributes:
|
5
5
|
project:
|
6
6
|
decidim_category_id: Kategória
|
7
|
-
decidim_scope_id: Rozsah
|
8
7
|
description: Popis
|
9
8
|
proposal_ids: Súvisiace návrhy
|
10
9
|
title: Názov
|
@@ -20,7 +19,6 @@ sk:
|
|
20
19
|
actions:
|
21
20
|
attachment_collections: Priečinky
|
22
21
|
attachments: Prílohy
|
23
|
-
confirm_destroy: Naozaj chcete odstrániť tento projekt?
|
24
22
|
destroy: Odstrániť
|
25
23
|
edit: Upraviť
|
26
24
|
import: Importovať návrhy do projektov
|
@@ -82,7 +80,6 @@ sk:
|
|
82
80
|
other: "%{count} projekty"
|
83
81
|
filters:
|
84
82
|
category: Kategória
|
85
|
-
scope: Rozsah
|
86
83
|
search: Hľadať
|
87
84
|
orders:
|
88
85
|
highest_cost: Najvyššie náklady
|
data/config/locales/sq-AL.yml
CHANGED
@@ -3,7 +3,7 @@ sq:
|
|
3
3
|
activemodel:
|
4
4
|
attributes:
|
5
5
|
budget:
|
6
|
-
decidim_scope_id:
|
6
|
+
decidim_scope_id: Fushëveprim
|
7
7
|
description: Përshkrimi
|
8
8
|
title: Titulli
|
9
9
|
total_budget: Buxheti total
|
@@ -31,7 +31,7 @@ sq:
|
|
31
31
|
category_id_eq:
|
32
32
|
label: Kategori
|
33
33
|
scope_id_eq:
|
34
|
-
label:
|
34
|
+
label: Fushëveprim
|
35
35
|
selected_at_null:
|
36
36
|
label: E përzgjedhur
|
37
37
|
values:
|
@@ -41,7 +41,6 @@ sq:
|
|
41
41
|
actions:
|
42
42
|
attachment_collections: Dosjet
|
43
43
|
attachments: Bashkëngjitjet
|
44
|
-
confirm_destroy: A je i sigurt që do ta fshish këtë projekt?
|
45
44
|
destroy: Fshi
|
46
45
|
edit: Përpuno
|
47
46
|
edit_projects: Menaxho projektet
|
@@ -49,3 +48,11 @@ sq:
|
|
49
48
|
new_budget: Buxhet i ri
|
50
49
|
new_project: Projekt i ri
|
51
50
|
preview: Pamje paraprake
|
51
|
+
projects:
|
52
|
+
filters:
|
53
|
+
scope: Fushëveprim
|
54
|
+
components:
|
55
|
+
budgets:
|
56
|
+
settings:
|
57
|
+
global:
|
58
|
+
scope_id: Fushëveprim
|
data/config/locales/sv.yml
CHANGED
@@ -44,7 +44,7 @@ sv:
|
|
44
44
|
actions:
|
45
45
|
attachment_collections: Mappar
|
46
46
|
attachments: Bilagor
|
47
|
-
confirm_destroy:
|
47
|
+
confirm_destroy: Är du säker på att du vill radera projektet?
|
48
48
|
destroy: Radera
|
49
49
|
edit: Redigera
|
50
50
|
edit_projects: Hantera projekt
|
@@ -224,7 +224,7 @@ sv:
|
|
224
224
|
are_you_sure: Om du ändrar dig kan du ändra rösten senare.
|
225
225
|
cancel: Avbryt
|
226
226
|
confirm: Bekräfta
|
227
|
-
description:
|
227
|
+
description: Projekt du har valt inom budgeten.
|
228
228
|
title: Bekräfta röst
|
229
229
|
budget_excess:
|
230
230
|
budget_excess:
|
@@ -262,7 +262,7 @@ sv:
|
|
262
262
|
not_selected: Inte vald
|
263
263
|
selected: Valda
|
264
264
|
order_progress:
|
265
|
-
assigned:
|
265
|
+
assigned: Valda
|
266
266
|
budget: Budget
|
267
267
|
dynamic_help:
|
268
268
|
keep_adding_projects: Fortsätt lägga till projekt
|
data/config/locales/tr-TR.yml
CHANGED
@@ -3,14 +3,12 @@ tr:
|
|
3
3
|
activemodel:
|
4
4
|
attributes:
|
5
5
|
budget:
|
6
|
-
decidim_scope_id: Kapsam
|
7
6
|
description: Açıklama
|
8
7
|
title: Başlık
|
9
8
|
total_budget: Toplam bütçe
|
10
9
|
project:
|
11
10
|
budget_amount: Bütçe tutarı
|
12
11
|
decidim_category_id: Kategori
|
13
|
-
decidim_scope_id: Kapsam
|
14
12
|
description: Açıklama
|
15
13
|
proposal_ids: İlgili teklifler
|
16
14
|
selected: Uygulama için seçildi
|
@@ -25,7 +23,6 @@ tr:
|
|
25
23
|
actions:
|
26
24
|
attachment_collections: Klasörler
|
27
25
|
attachments: Ekler
|
28
|
-
confirm_destroy: Bu projeyi silmek istediğinize emin misiniz?
|
29
26
|
destroy: Sil
|
30
27
|
edit: Düzenle
|
31
28
|
edit_projects: Projeleri Yönet
|
@@ -132,7 +129,6 @@ tr:
|
|
132
129
|
other: "%{count} proje"
|
133
130
|
filters:
|
134
131
|
category: Kategori
|
135
|
-
scope: Kapsam
|
136
132
|
search: Arama
|
137
133
|
status: Durum
|
138
134
|
status_values:
|
@@ -171,7 +167,6 @@ tr:
|
|
171
167
|
more_information_modal: Daha fazla bilgi
|
172
168
|
projects_per_page: Sayfa başına projeler
|
173
169
|
resources_permissions_enabled: Her proje için eylem izinleri ayarlanabilir
|
174
|
-
scope_id: Kapsam
|
175
170
|
scopes_enabled: Kapsamlar etkinleştirildi
|
176
171
|
title: Başlık
|
177
172
|
total_budget: Toplam bütçe
|
data/config/locales/uk.yml
CHANGED
@@ -4,7 +4,6 @@ uk:
|
|
4
4
|
attributes:
|
5
5
|
project:
|
6
6
|
decidim_category_id: Категорія
|
7
|
-
decidim_scope_id: Обсяг
|
8
7
|
description: Опис
|
9
8
|
proposal_ids: Супутні пропозиції
|
10
9
|
title: Назва
|
@@ -20,7 +19,6 @@ uk:
|
|
20
19
|
actions:
|
21
20
|
attachment_collections: Теки
|
22
21
|
attachments: Вкладені файли
|
23
|
-
confirm_destroy: Ви дійсно бажаєте видалити цей проект?
|
24
22
|
destroy: Видалити
|
25
23
|
edit: Редагувати
|
26
24
|
import: Внести до проектів запозичені пропозиції
|
@@ -78,7 +76,6 @@ uk:
|
|
78
76
|
other: "%{count} проектів"
|
79
77
|
filters:
|
80
78
|
category: Категорія
|
81
|
-
scope: Обсяг
|
82
79
|
search: Шукати
|
83
80
|
project_budget_button:
|
84
81
|
added: Додано
|
data/config/locales/zh-CN.yml
CHANGED
@@ -3,14 +3,12 @@ zh-CN:
|
|
3
3
|
activemodel:
|
4
4
|
attributes:
|
5
5
|
budget:
|
6
|
-
decidim_scope_id: 范围
|
7
6
|
description: 描述
|
8
7
|
title: 标题
|
9
8
|
total_budget: 预算总额
|
10
9
|
project:
|
11
10
|
budget_amount: 预算金额
|
12
11
|
decidim_category_id: 类别
|
13
|
-
decidim_scope_id: 范围
|
14
12
|
description: 描述
|
15
13
|
proposal_ids: 有关提议
|
16
14
|
title: 标题
|
@@ -23,7 +21,6 @@ zh-CN:
|
|
23
21
|
actions:
|
24
22
|
attachment_collections: 文件夹
|
25
23
|
attachments: 附件
|
26
|
-
confirm_destroy: 您确定要删除此项目吗?
|
27
24
|
destroy: 删除
|
28
25
|
edit: 编辑
|
29
26
|
edit_projects: 管理项目
|
@@ -117,7 +114,6 @@ zh-CN:
|
|
117
114
|
other: "%{count} 个项目"
|
118
115
|
filters:
|
119
116
|
category: 类别
|
120
|
-
scope: 范围
|
121
117
|
search: 搜索
|
122
118
|
status: 状态
|
123
119
|
status_values:
|
@@ -154,7 +150,6 @@ zh-CN:
|
|
154
150
|
landing_page_content: 预算登陆页
|
155
151
|
more_information_modal: 更多信息模式
|
156
152
|
projects_per_page: 每页项目数
|
157
|
-
scope_id: 范围
|
158
153
|
scopes_enabled: 范围已启用
|
159
154
|
title: 标题
|
160
155
|
total_budget: 预算总额
|
data/config/locales/zh-TW.yml
CHANGED
data/decidim-budgets.gemspec
CHANGED
@@ -10,7 +10,7 @@ Gem::Specification.new do |s|
|
|
10
10
|
s.version = Decidim::Budgets.version
|
11
11
|
s.authors = ["Josep Jaume Rey Peroy", "Marc Riera Casals", "Oriol Gual Oliva"]
|
12
12
|
s.email = ["josepjaume@gmail.com", "mrc2407@gmail.com", "oriolgual@gmail.com"]
|
13
|
-
s.license = "AGPL-3.0"
|
13
|
+
s.license = "AGPL-3.0-or-later"
|
14
14
|
s.homepage = "https://decidim.org"
|
15
15
|
s.metadata = {
|
16
16
|
"bug_tracker_uri" => "https://github.com/decidim/decidim/issues",
|
@@ -16,6 +16,12 @@ module Decidim
|
|
16
16
|
field :updated_at, Decidim::Core::DateTimeType, "When this budget was updated", null: true
|
17
17
|
|
18
18
|
field :projects, [Decidim::Budgets::ProjectType, { null: true }], "The projects for this budget", null: false
|
19
|
+
|
20
|
+
def self.authorized?(object, context)
|
21
|
+
super && object.visible?
|
22
|
+
rescue Decidim::PermissionAction::PermissionNotSetError
|
23
|
+
false
|
24
|
+
end
|
19
25
|
end
|
20
26
|
end
|
21
27
|
end
|
@@ -2,9 +2,7 @@
|
|
2
2
|
|
3
3
|
module Decidim
|
4
4
|
module Budgets
|
5
|
-
class BudgetsType < Decidim::
|
6
|
-
implements Decidim::Core::ComponentInterface
|
7
|
-
|
5
|
+
class BudgetsType < Decidim::Core::ComponentType
|
8
6
|
graphql_name "Budgets"
|
9
7
|
description "A budget component of a participatory space."
|
10
8
|
|
@@ -18,6 +18,19 @@ module Decidim
|
|
18
18
|
field :created_at, Decidim::Core::DateTimeType, "When this project was created", null: true
|
19
19
|
field :updated_at, Decidim::Core::DateTimeType, "When this project was updated", null: true
|
20
20
|
field :reference, GraphQL::Types::String, "The reference for this project", null: true
|
21
|
+
|
22
|
+
def self.authorized?(object, context)
|
23
|
+
context[:project] = object
|
24
|
+
|
25
|
+
chain = [
|
26
|
+
allowed_to?(:read, :project, object, context),
|
27
|
+
object.visible?
|
28
|
+
].all?
|
29
|
+
|
30
|
+
super && chain
|
31
|
+
rescue Decidim::PermissionAction::PermissionNotSetError
|
32
|
+
false
|
33
|
+
end
|
21
34
|
end
|
22
35
|
end
|
23
36
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: decidim-budgets
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.29.
|
4
|
+
version: 0.29.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Josep Jaume Rey Peroy
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2025-02-12 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: decidim-comments
|
@@ -18,70 +18,70 @@ dependencies:
|
|
18
18
|
requirements:
|
19
19
|
- - '='
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: 0.29.
|
21
|
+
version: 0.29.2
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
25
25
|
requirements:
|
26
26
|
- - '='
|
27
27
|
- !ruby/object:Gem::Version
|
28
|
-
version: 0.29.
|
28
|
+
version: 0.29.2
|
29
29
|
- !ruby/object:Gem::Dependency
|
30
30
|
name: decidim-core
|
31
31
|
requirement: !ruby/object:Gem::Requirement
|
32
32
|
requirements:
|
33
33
|
- - '='
|
34
34
|
- !ruby/object:Gem::Version
|
35
|
-
version: 0.29.
|
35
|
+
version: 0.29.2
|
36
36
|
type: :runtime
|
37
37
|
prerelease: false
|
38
38
|
version_requirements: !ruby/object:Gem::Requirement
|
39
39
|
requirements:
|
40
40
|
- - '='
|
41
41
|
- !ruby/object:Gem::Version
|
42
|
-
version: 0.29.
|
42
|
+
version: 0.29.2
|
43
43
|
- !ruby/object:Gem::Dependency
|
44
44
|
name: decidim-admin
|
45
45
|
requirement: !ruby/object:Gem::Requirement
|
46
46
|
requirements:
|
47
47
|
- - '='
|
48
48
|
- !ruby/object:Gem::Version
|
49
|
-
version: 0.29.
|
49
|
+
version: 0.29.2
|
50
50
|
type: :development
|
51
51
|
prerelease: false
|
52
52
|
version_requirements: !ruby/object:Gem::Requirement
|
53
53
|
requirements:
|
54
54
|
- - '='
|
55
55
|
- !ruby/object:Gem::Version
|
56
|
-
version: 0.29.
|
56
|
+
version: 0.29.2
|
57
57
|
- !ruby/object:Gem::Dependency
|
58
58
|
name: decidim-dev
|
59
59
|
requirement: !ruby/object:Gem::Requirement
|
60
60
|
requirements:
|
61
61
|
- - '='
|
62
62
|
- !ruby/object:Gem::Version
|
63
|
-
version: 0.29.
|
63
|
+
version: 0.29.2
|
64
64
|
type: :development
|
65
65
|
prerelease: false
|
66
66
|
version_requirements: !ruby/object:Gem::Requirement
|
67
67
|
requirements:
|
68
68
|
- - '='
|
69
69
|
- !ruby/object:Gem::Version
|
70
|
-
version: 0.29.
|
70
|
+
version: 0.29.2
|
71
71
|
- !ruby/object:Gem::Dependency
|
72
72
|
name: decidim-proposals
|
73
73
|
requirement: !ruby/object:Gem::Requirement
|
74
74
|
requirements:
|
75
75
|
- - '='
|
76
76
|
- !ruby/object:Gem::Version
|
77
|
-
version: 0.29.
|
77
|
+
version: 0.29.2
|
78
78
|
type: :development
|
79
79
|
prerelease: false
|
80
80
|
version_requirements: !ruby/object:Gem::Requirement
|
81
81
|
requirements:
|
82
82
|
- - '='
|
83
83
|
- !ruby/object:Gem::Version
|
84
|
-
version: 0.29.
|
84
|
+
version: 0.29.2
|
85
85
|
description: A budgets component for decidim's participatory spaces.
|
86
86
|
email:
|
87
87
|
- josepjaume@gmail.com
|
@@ -239,6 +239,8 @@ files:
|
|
239
239
|
- config/locales/ar.yml
|
240
240
|
- config/locales/bg-BG.yml
|
241
241
|
- config/locales/bg.yml
|
242
|
+
- config/locales/bn-BD.yml
|
243
|
+
- config/locales/bs-BA.yml
|
242
244
|
- config/locales/ca.yml
|
243
245
|
- config/locales/cs-CZ.yml
|
244
246
|
- config/locales/cs.yml
|
@@ -355,7 +357,7 @@ files:
|
|
355
357
|
- lib/decidim/budgets/workflows/one.rb
|
356
358
|
homepage: https://decidim.org
|
357
359
|
licenses:
|
358
|
-
- AGPL-3.0
|
360
|
+
- AGPL-3.0-or-later
|
359
361
|
metadata:
|
360
362
|
bug_tracker_uri: https://github.com/decidim/decidim/issues
|
361
363
|
documentation_uri: https://docs.decidim.org/
|