decidim 0.4.0 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of decidim might be problematic. Click here for more details.

Files changed (130) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +1626 -0
  3. data/Gemfile.lock +82 -82
  4. data/decidim-admin/app/assets/stylesheets/decidim/admin/_variables.scss +2 -0
  5. data/decidim-admin/app/assets/stylesheets/decidim/admin/extra/_cards.scss +6 -0
  6. data/decidim-admin/app/assets/stylesheets/decidim/admin/modules/_typography.scss +4 -0
  7. data/decidim-admin/app/commands/decidim/admin/create_participatory_process_admin.rb +3 -5
  8. data/decidim-admin/app/constraints/decidim/admin/organization_dashboard_constraint.rb +1 -1
  9. data/decidim-admin/app/controllers/decidim/admin/application_controller.rb +1 -1
  10. data/decidim-admin/app/controllers/decidim/admin/categories_controller.rb +9 -9
  11. data/decidim-admin/app/controllers/decidim/admin/concerns/participatory_process_admin.rb +1 -8
  12. data/decidim-admin/app/controllers/decidim/admin/exports_controller.rb +2 -2
  13. data/decidim-admin/app/controllers/decidim/admin/feature_permissions_controller.rb +2 -2
  14. data/decidim-admin/app/controllers/decidim/admin/features/base_controller.rb +0 -5
  15. data/decidim-admin/app/controllers/decidim/admin/features_controller.rb +4 -4
  16. data/decidim-admin/app/controllers/decidim/admin/moderations_controller.rb +1 -1
  17. data/decidim-admin/app/controllers/decidim/admin/participatory_process_attachments_controller.rb +2 -2
  18. data/decidim-admin/app/controllers/decidim/admin/participatory_process_copies_controller.rb +3 -9
  19. data/decidim-admin/app/controllers/decidim/admin/participatory_process_publications_controller.rb +4 -4
  20. data/decidim-admin/app/controllers/decidim/admin/participatory_process_step_activations_controller.rb +2 -2
  21. data/decidim-admin/app/controllers/decidim/admin/participatory_process_step_ordering_controller.rb +2 -2
  22. data/decidim-admin/app/controllers/decidim/admin/participatory_process_steps_controller.rb +6 -6
  23. data/decidim-admin/app/controllers/decidim/admin/participatory_process_user_roles_controller.rb +13 -15
  24. data/decidim-admin/app/controllers/decidim/admin/participatory_processes_controller.rb +16 -18
  25. data/decidim-admin/app/controllers/decidim/admin/users_controller.rb +4 -4
  26. data/decidim-admin/app/forms/decidim/admin/participatory_process_user_role_form.rb +2 -2
  27. data/decidim-admin/app/models/decidim/admin/abilities/{admin_user.rb → admin_ability.rb} +3 -6
  28. data/decidim-admin/app/models/decidim/admin/abilities/{base.rb → base_ability.rb} +1 -4
  29. data/decidim-admin/app/models/decidim/admin/abilities/{participatory_process_admin.rb → participatory_process_admin_ability.rb} +18 -28
  30. data/decidim-admin/app/models/decidim/admin/abilities/participatory_process_collaborator_ability.rb +19 -0
  31. data/decidim-admin/app/models/decidim/admin/abilities/participatory_process_moderator_ability.rb +23 -0
  32. data/decidim-admin/app/queries/decidim/admin/process_admins.rb +1 -1
  33. data/decidim-admin/app/views/decidim/admin/categories/index.html.erb +9 -9
  34. data/decidim-admin/app/views/decidim/admin/categories/new.html.erb +1 -1
  35. data/decidim-admin/app/views/decidim/admin/features/_form.html.erb +1 -1
  36. data/decidim-admin/app/views/decidim/admin/features/edit.html.erb +1 -1
  37. data/decidim-admin/app/views/decidim/admin/features/new.html.erb +1 -1
  38. data/decidim-admin/app/views/decidim/admin/participatory_process_copies/new.html.erb +1 -1
  39. data/decidim-admin/app/views/decidim/admin/participatory_process_groups/index.html.erb +5 -1
  40. data/decidim-admin/app/views/decidim/admin/participatory_process_steps/index.html.erb +9 -9
  41. data/decidim-admin/app/views/decidim/admin/participatory_process_user_roles/index.html.erb +6 -6
  42. data/decidim-admin/app/views/decidim/admin/participatory_processes/edit.html.erb +6 -6
  43. data/decidim-admin/app/views/decidim/admin/participatory_processes/index.html.erb +11 -1
  44. data/decidim-admin/app/views/layouts/decidim/admin/participatory_process.html.erb +18 -18
  45. data/decidim-admin/config/locales/ca.yml +4 -3
  46. data/decidim-admin/config/locales/en.yml +1 -0
  47. data/decidim-admin/config/locales/es.yml +1 -2
  48. data/decidim-admin/db/migrate/20170714083651_rename_participatory_process_user_roles_table.rb +7 -0
  49. data/decidim-admin/lib/decidim/admin/engine.rb +8 -6
  50. data/decidim-admin/lib/decidim/admin/test/factories.rb +1 -1
  51. data/decidim-admin/spec/commands/create_participatory_process_admin_spec.rb +4 -4
  52. data/decidim-admin/spec/models/abilities/{admin_user_spec.rb → admin_ability_spec.rb} +1 -1
  53. data/decidim-admin/spec/models/abilities/{participatory_process_admin_spec.rb → participatory_process_admin_ability_spec.rb} +3 -3
  54. data/decidim-admin/spec/models/abilities/participatory_process_collaborator_ability_spec.rb +18 -0
  55. data/decidim-admin/spec/queries/process_admins_spec.rb +1 -1
  56. data/decidim-admin/spec/views/decidim/static_pages/_form.html.erb_spec.rb +1 -1
  57. data/decidim-budgets/config/locales/ca.yml +2 -2
  58. data/decidim-comments/app/models/decidim/comments/abilities/admin_ability.rb +19 -0
  59. data/decidim-comments/app/models/decidim/comments/abilities/{admin_user.rb → current_user_ability.rb} +4 -6
  60. data/decidim-comments/app/models/decidim/comments/abilities/participatory_process_admin_ability.rb +19 -0
  61. data/decidim-comments/app/models/decidim/comments/abilities/participatory_process_moderator_ability.rb +19 -0
  62. data/decidim-comments/lib/decidim/comments/admin_engine.rb +5 -2
  63. data/decidim-comments/lib/decidim/comments/engine.rb +6 -0
  64. data/decidim-comments/spec/models/abilities/{admin_user_spec.rb → admin_ability_spec.rb} +1 -1
  65. data/decidim-comments/spec/models/abilities/{process_admin_user_spec.rb → participatory_process_admin_ability_spec.rb} +3 -2
  66. data/decidim-meetings/app/controllers/decidim/meetings/meeting_widgets_controller.rb +1 -0
  67. data/decidim-meetings/app/controllers/decidim/meetings/meetings_controller.rb +2 -2
  68. data/decidim-meetings/app/views/decidim/meetings/meeting_widgets/show.html.erb +1 -1
  69. data/decidim-meetings/app/views/decidim/meetings/meetings/_meetings.html.erb +2 -0
  70. data/decidim-meetings/config/locales/ca.yml +1 -1
  71. data/decidim-meetings/spec/features/explore_meetings_spec.rb +11 -0
  72. data/decidim-proposals/app/controllers/decidim/proposals/proposals_controller.rb +2 -1
  73. data/decidim-proposals/app/forms/decidim/proposals/admin/proposal_answer_form.rb +1 -1
  74. data/decidim-proposals/app/helpers/decidim/proposals/application_helper.rb +23 -11
  75. data/decidim-proposals/app/models/decidim/proposals/abilities/{admin_user.rb → admin_ability.rb} +5 -12
  76. data/decidim-proposals/app/models/decidim/proposals/abilities/{current_user.rb → current_user_ability.rb} +1 -2
  77. data/decidim-proposals/app/models/decidim/proposals/abilities/{process_admin_user.rb → participatory_process_admin_ability.rb} +10 -22
  78. data/decidim-proposals/app/models/decidim/proposals/abilities/participatory_process_moderator_ability.rb +19 -0
  79. data/decidim-proposals/app/models/decidim/proposals/proposal.rb +8 -0
  80. data/decidim-proposals/app/services/decidim/proposals/proposal_search.rb +5 -2
  81. data/decidim-proposals/app/views/decidim/proposals/admin/proposal_answers/edit.html.erb +1 -1
  82. data/decidim-proposals/app/views/decidim/proposals/proposals/_filters.html.erb +1 -1
  83. data/decidim-proposals/app/views/decidim/proposals/proposals/_proposal_badge.html.erb +1 -1
  84. data/decidim-proposals/app/views/decidim/proposals/proposals/_proposals.html.erb +10 -1
  85. data/decidim-proposals/config/locales/ca.yml +3 -0
  86. data/decidim-proposals/config/locales/en.yml +3 -0
  87. data/decidim-proposals/config/locales/es.yml +3 -0
  88. data/decidim-proposals/lib/decidim/proposals/admin_engine.rb +5 -2
  89. data/decidim-proposals/lib/decidim/proposals/engine.rb +1 -1
  90. data/decidim-proposals/lib/decidim/proposals/feature.rb +4 -0
  91. data/decidim-proposals/lib/decidim/proposals/proposal_serializer.rb +4 -0
  92. data/decidim-proposals/spec/features/proposals_spec.rb +12 -5
  93. data/decidim-proposals/spec/models/decidim/proposals/abilities/{admin_user_spec.rb → admin_ability_spec.rb} +1 -1
  94. data/decidim-proposals/spec/models/decidim/proposals/abilities/{process_admin_user_spec.rb → participatory_process_admin_ability.rb} +10 -2
  95. data/decidim-proposals/spec/services/decidim/proposals/proposal_serializer_spec.rb +7 -0
  96. data/decidim-proposals/spec/shared/manage_proposals_examples.rb +21 -0
  97. data/decidim-results/app/controllers/decidim/results/results_controller.rb +2 -1
  98. data/decidim-results/app/views/decidim/results/results/_results.html.erb +2 -0
  99. data/decidim-results/config/locales/ca.yml +1 -1
  100. data/decidim-results/spec/features/comments_spec.rb +1 -1
  101. data/decidim-results/spec/features/explore_results_spec.rb +11 -0
  102. data/decidim-surveys/app/models/decidim/surveys/abilities/admin_ability.rb +17 -0
  103. data/decidim-surveys/app/models/decidim/surveys/abilities/{current_user.rb → current_user_ability.rb} +1 -1
  104. data/decidim-surveys/app/models/decidim/surveys/abilities/participatory_process_admin_ability.rb +19 -0
  105. data/decidim-surveys/config/locales/ca.yml +1 -1
  106. data/decidim-surveys/lib/decidim/surveys/admin_engine.rb +4 -2
  107. data/decidim-surveys/lib/decidim/surveys/engine.rb +1 -1
  108. data/decidim-surveys/spec/models/decidim/surveys/abilities/{admin_user_spec.rb → admin_ability_spec.rb} +1 -1
  109. data/decidim-surveys/spec/models/decidim/surveys/abilities/{current_user_spec.rb → current_user_ability_spec.rb} +1 -1
  110. data/decidim-surveys/spec/models/decidim/surveys/abilities/{process_admin_user_spec.rb → participatory_process_admin_ability_spec.rb} +3 -2
  111. data/decidim-system/app/commands/decidim/system/register_organization.rb +2 -2
  112. data/decidim-system/spec/commands/decidim/system/register_organization_spec.rb +1 -1
  113. data/docs/getting_started.md +1 -1
  114. data/lib/generators/decidim/templates/initializer.rb +2 -2
  115. data/package.json +1 -3
  116. data/yarn.lock +21 -18
  117. metadata +52 -54
  118. data/decidim-admin/app/models/decidim/admin/abilities/collaborator_user.rb +0 -20
  119. data/decidim-admin/app/models/decidim/admin/participatory_process_user_role.rb +0 -15
  120. data/decidim-admin/app/queries/decidim/admin/manageable_participatory_processes_for_user.rb +0 -42
  121. data/decidim-admin/app/queries/decidim/admin/process_admin_roles_for_process.rb +0 -36
  122. data/decidim-admin/db/seeds.rb +0 -24
  123. data/decidim-admin/spec/models/abilities/collaborator_user_spec.rb +0 -67
  124. data/decidim-admin/spec/models/participatory_process_user_role_spec.rb +0 -39
  125. data/decidim-admin/spec/queries/manageable_participatory_processes_for_user_spec.rb +0 -39
  126. data/decidim-admin/spec/queries/process_admin_roles_for_process_spec.rb +0 -19
  127. data/decidim-comments/app/models/decidim/comments/abilities/process_admin_user.rb +0 -34
  128. data/decidim-meetings/app/views/decidim/meetings/meeting_widgets/.erb +0 -16
  129. data/decidim-surveys/app/models/decidim/surveys/abilities/admin_user.rb +0 -34
  130. data/decidim-surveys/app/models/decidim/surveys/abilities/process_admin_user.rb +0 -44
@@ -2,7 +2,7 @@
2
2
 
3
3
  require "spec_helper"
4
4
 
5
- describe Decidim::Proposals::Abilities::AdminUser do
5
+ describe Decidim::Proposals::Abilities::AdminAbility do
6
6
  let(:user) { build(:user, :admin) }
7
7
  let(:context) { {} }
8
8
 
@@ -2,10 +2,14 @@
2
2
 
3
3
  require "spec_helper"
4
4
 
5
- describe Decidim::Proposals::Abilities::ProcessAdminUser do
5
+ describe Decidim::Proposals::Abilities::ParticipatoryProcessAdminAbility do
6
6
  let(:user) { build(:user) }
7
7
  let(:user_process) { create :participatory_process, organization: user.organization }
8
- let(:context) { {} }
8
+ let!(:user_process_role) { create :participatory_process_user_role, user: user, participatory_process: user_process, role: :admin }
9
+ let(:feature) { create :proposal_feature, participatory_process: user_process }
10
+ let(:proposals) { create_list :proposal, 3, feature: feature }
11
+ let(:other_proposals) { create_list :proposal, 3 }
12
+ let(:context) { { current_participatory_process: user_process } }
9
13
 
10
14
  subject { described_class.new(user, context) }
11
15
 
@@ -23,6 +27,7 @@ describe Decidim::Proposals::Abilities::ProcessAdminUser do
23
27
  context "when creation is disabled" do
24
28
  let(:context) do
25
29
  {
30
+ current_participatory_process: user_process,
26
31
  current_settings: double(creation_enabled?: false),
27
32
  feature_settings: double(official_proposals_enabled: true)
28
33
  }
@@ -34,6 +39,7 @@ describe Decidim::Proposals::Abilities::ProcessAdminUser do
34
39
  context "when official proposals are disabled" do
35
40
  let(:context) do
36
41
  {
42
+ current_participatory_process: user_process,
37
43
  current_settings: double(creation_enabled?: true),
38
44
  feature_settings: double(official_proposals_enabled: false)
39
45
  }
@@ -45,6 +51,7 @@ describe Decidim::Proposals::Abilities::ProcessAdminUser do
45
51
  context "when proposal_answering is disabled in step level" do
46
52
  let(:context) do
47
53
  {
54
+ current_participatory_process: user_process,
48
55
  current_settings: double(proposal_answering_enabled: false)
49
56
  }
50
57
  end
@@ -55,6 +62,7 @@ describe Decidim::Proposals::Abilities::ProcessAdminUser do
55
62
  context "when proposal_answering is disabled in feature level" do
56
63
  let(:context) do
57
64
  {
65
+ current_participatory_process: user_process,
58
66
  feature_settings: double(proposal_answering_enabled: false)
59
67
  }
60
68
  end
@@ -7,6 +7,7 @@ module Decidim
7
7
  describe ProposalSerializer do
8
8
  let!(:proposal) { create(:proposal) }
9
9
  let!(:category) { create(:category, participatory_process: feature.participatory_process) }
10
+ let!(:scope) { create(:scope, organization: feature.participatory_process.organization) }
10
11
  let(:participatory_process) { feature.participatory_process }
11
12
  let(:feature) { proposal.feature }
12
13
 
@@ -15,6 +16,7 @@ module Decidim
15
16
 
16
17
  before do
17
18
  proposal.update_attribute(:category, category)
19
+ proposal.update_attribute(:scope, scope)
18
20
  proposal.link_resources(meetings, "proposals_from_meeting")
19
21
  end
20
22
 
@@ -34,6 +36,11 @@ module Decidim
34
36
  expect(serialized[:category]).to include(name: category.name)
35
37
  end
36
38
 
39
+ it "serializes the scope" do
40
+ expect(serialized[:scope]).to include(id: scope.id)
41
+ expect(serialized[:scope]).to include(name: scope.name)
42
+ end
43
+
37
44
  it "serializes the title" do
38
45
  expect(serialized).to include(title: proposal.title)
39
46
  end
@@ -229,6 +229,27 @@ RSpec.shared_examples "manage proposals" do
229
229
  end
230
230
  end
231
231
 
232
+ it "can mark a proposal as evaluating" do
233
+ within find("tr", text: proposal.title) do
234
+ find("a.action-icon--edit-answer").click
235
+ end
236
+
237
+ within ".edit_proposal_answer" do
238
+ choose "Evaluating"
239
+ click_button "Answer"
240
+ end
241
+
242
+ within ".callout-wrapper" do
243
+ expect(page).to have_content("Proposal successfully answered")
244
+ end
245
+
246
+ within find("tr", text: proposal.title) do
247
+ within find("td:nth-child(4)") do
248
+ expect(page).to have_content("Evaluating")
249
+ end
250
+ end
251
+ end
252
+
232
253
  it "can edit a proposal answer" do
233
254
  proposal.update_attributes!(
234
255
  state: "rejected",
@@ -5,6 +5,7 @@ module Decidim
5
5
  # Exposes the result resource so users can view them
6
6
  class ResultsController < Decidim::Results::ApplicationController
7
7
  include FilterResource
8
+ include Paginable
8
9
  helper Decidim::WidgetUrlsHelper
9
10
 
10
11
  helper_method :results, :result, :stats_calculator
@@ -12,7 +13,7 @@ module Decidim
12
13
  private
13
14
 
14
15
  def results
15
- @results ||= search.results.order("title -> '#{I18n.locale}' ASC").page(params[:page]).per(12)
16
+ @results ||= paginate(search.results.order("title -> '#{I18n.locale}' ASC"))
16
17
  end
17
18
 
18
19
  def result
@@ -1,3 +1,5 @@
1
+ <%= render partial: "decidim/shared/results_per_page" %>
2
+
1
3
  <div class="row small-up-1 medium-up-2 card-grid">
2
4
  <% results.each do |result| %>
3
5
  <div class="column">
@@ -23,7 +23,7 @@ ca:
23
23
  result_meetings: Trobades relacionades
24
24
  results:
25
25
  actions:
26
- confirm_destroy: Esteu segur que voleu suprimir aquest resultat?
26
+ confirm_destroy: Segur que vols suprimir aquest resultat?
27
27
  destroy: Esborra
28
28
  edit: Edita
29
29
  new: Nou
@@ -7,7 +7,7 @@ describe "Comments", type: :feature, perform_enqueued: true do
7
7
  let!(:participatory_process) { feature.participatory_process }
8
8
  let!(:participatory_process_admin) do
9
9
  user = create(:user, :confirmed, organization: organization)
10
- Decidim::Admin::ParticipatoryProcessUserRole.create!(
10
+ Decidim::ParticipatoryProcessUserRole.create!(
11
11
  role: :admin,
12
12
  user: user,
13
13
  participatory_process: participatory_process
@@ -71,6 +71,17 @@ describe "Explore results", type: :feature do
71
71
  end
72
72
  end
73
73
  end
74
+
75
+ context "when paginating" do
76
+ before do
77
+ Decidim::Results::Result.destroy_all
78
+ end
79
+
80
+ let!(:collection) { create_list :result, collection_size, feature: feature }
81
+ let!(:resource_selector) { ".card--result" }
82
+
83
+ it_behaves_like "a paginated resource"
84
+ end
74
85
  end
75
86
 
76
87
  context "show" do
@@ -0,0 +1,17 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Decidim
4
+ module Surveys
5
+ module Abilities
6
+ # Defines the abilities related to surveys for a logged in admin user.
7
+ # Intended to be used with `cancancan`.
8
+ class AdminAbility < Decidim::Abilities::AdminAbility
9
+ def define_abilities
10
+ super
11
+
12
+ can :manage, Survey
13
+ end
14
+ end
15
+ end
16
+ end
17
+ end
@@ -5,7 +5,7 @@ module Decidim
5
5
  module Abilities
6
6
  # Defines the abilities related to surveys for a logged in user.
7
7
  # Intended to be used with `cancancan`.
8
- class CurrentUser
8
+ class CurrentUserAbility
9
9
  include CanCan::Ability
10
10
 
11
11
  attr_reader :user, :context
@@ -0,0 +1,19 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Decidim
4
+ module Surveys
5
+ module Abilities
6
+ # Defines the abilities related to surveys for a logged in process admin user.
7
+ # Intended to be used with `cancancan`.
8
+ class ParticipatoryProcessAdminAbility < Decidim::Abilities::ParticipatoryProcessAdminAbility
9
+ def define_participatory_process_abilities
10
+ super
11
+
12
+ can :manage, Survey do |survey|
13
+ can_manage_process?(survey.feature.participatory_process)
14
+ end
15
+ end
16
+ end
17
+ end
18
+ end
19
+ end
@@ -58,7 +58,7 @@ ca:
58
58
  answer_survey:
59
59
  anonymous_user_message: <a href="%{sign_in_link}">Entra amb el teu compte</a> o <a href="%{sign_up_link}">dona't d'alta</a> per contestar l'enquesta.
60
60
  title: Respon a l'enquesta
61
- are_you_sure: Aquesta acció no es pot desfer i no podràs editar les respostes. N'estàs segur?
61
+ are_you_sure: Aquesta acció no es pot desfer i no podràs editar les respostes. Segur que vols seguir?
62
62
  submit: Enviar
63
63
  survey_answered:
64
64
  body: Ja ha respost a aquesta enquesta.
@@ -21,8 +21,10 @@ module Decidim
21
21
 
22
22
  initializer "decidim_surveys.inject_abilities_to_user" do |_app|
23
23
  Decidim.configure do |config|
24
- config.admin_abilities += ["Decidim::Surveys::Abilities::AdminUser"]
25
- config.admin_abilities += ["Decidim::Surveys::Abilities::ProcessAdminUser"]
24
+ config.admin_abilities += [
25
+ "Decidim::Surveys::Abilities::AdminAbility",
26
+ "Decidim::Surveys::Abilities::ParticipatoryProcessAdminAbility"
27
+ ]
26
28
  end
27
29
  end
28
30
 
@@ -17,7 +17,7 @@ module Decidim
17
17
 
18
18
  initializer "decidim_surveys.inject_abilities_to_user" do |_app|
19
19
  Decidim.configure do |config|
20
- config.abilities += ["Decidim::Surveys::Abilities::CurrentUser"]
20
+ config.abilities += ["Decidim::Surveys::Abilities::CurrentUserAbility"]
21
21
  end
22
22
  end
23
23
  end
@@ -2,7 +2,7 @@
2
2
 
3
3
  require "spec_helper"
4
4
 
5
- describe Decidim::Surveys::Abilities::AdminUser do
5
+ describe Decidim::Surveys::Abilities::AdminAbility do
6
6
  let(:user) { build(:user, :admin) }
7
7
  let(:context) { {} }
8
8
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  require "spec_helper"
4
4
 
5
- describe Decidim::Surveys::Abilities::CurrentUser do
5
+ describe Decidim::Surveys::Abilities::CurrentUserAbility do
6
6
  let(:organization) { build(:organization) }
7
7
  let(:user) { build(:user, organization: organization) }
8
8
  let(:participatory_process) { build(:participatory_process, organization: organization) }
@@ -2,10 +2,11 @@
2
2
 
3
3
  require "spec_helper"
4
4
 
5
- describe Decidim::Surveys::Abilities::ProcessAdminUser do
5
+ describe Decidim::Surveys::Abilities::ParticipatoryProcessAdminAbility do
6
6
  let(:user) { build(:user) }
7
7
  let(:user_process) { create :participatory_process, organization: user.organization }
8
- let(:context) { {} }
8
+ let!(:user_role) { create :participatory_process_user_role, user: user, participatory_process: user_process, role: :admin }
9
+ let(:context) { { current_participatory_process: user_process } }
9
10
 
10
11
  subject { described_class.new(user, context) }
11
12
 
@@ -52,10 +52,10 @@ module Decidim
52
52
  end
53
53
 
54
54
  def invite_user_form(organization)
55
- Decidim::InviteAdminForm.from_params(
55
+ Decidim::InviteUserForm.from_params(
56
56
  name: form.organization_admin_name,
57
57
  email: form.organization_admin_email,
58
- roles: %w(admin),
58
+ admin: true,
59
59
  invitation_instructions: "organization_admin_invitation_instructions"
60
60
  ).with_context(
61
61
  current_user: form.current_user,
@@ -45,7 +45,7 @@ module Decidim
45
45
 
46
46
  expect(admin.email).to eq("f.laguardia@gotham.gov")
47
47
  expect(admin.organization.name).to eq("Gotham City")
48
- expect(admin.roles).to include("admin")
48
+ expect(admin).to be_admin
49
49
  expect(admin).to be_created_by_invite
50
50
  end
51
51
 
@@ -99,7 +99,7 @@ Once you've successfully deployed your app to your favorite platform, you'll nee
99
99
  ```ruby
100
100
  email = <your email>
101
101
  password = <a secure password>
102
- user = Decidim::System::Admin.new(email: my_email, password: my_password, password_confirmation: my_password)
102
+ user = Decidim::System::Admin.new(email: email, password: password, password_confirmation: password)
103
103
  user.save!
104
104
  ```
105
105
 
@@ -16,8 +16,8 @@ Decidim.configure do |config|
16
16
  # here_app_code: Rails.application.secrets.geocoder[:here_app_code]
17
17
  # }
18
18
 
19
- # Custom calculate reference method
20
- # config.calculate_reference_method = lambda do |resource|
19
+ # Custom resource reference generator method
20
+ # config.resource_reference_generator = lambda do |resource, feature|
21
21
  # # Implement your custom method to generate resources references
22
22
  # "1234-#{resource.id}"
23
23
  # end
data/package.json CHANGED
@@ -18,8 +18,7 @@
18
18
  "graphql:download_schema": "apollo-codegen download-schema http://localhost:3000/api --output schema.json",
19
19
  "pregraphql:generate_schema_types": "yarn run graphql:download_schema",
20
20
  "graphql:generate_schema_types": "apollo-codegen generate decidim-comments/**/*.graphql --schema schema.json --target typescript --output decidim-comments/app/frontend/support/schema.ts",
21
- "postgraphql:generate_schema_types": "rm schema.json",
22
- "precommit": "bundle exec rubocop -a `git diff --name-only master` && git commit -a --amend --no-edit --no-verify"
21
+ "postgraphql:generate_schema_types": "rm schema.json"
23
22
  },
24
23
  "devDependencies": {
25
24
  "@types/classnames": "^2.2.0",
@@ -51,7 +50,6 @@
51
50
  "eslint-plugin-react": "^7.1.0",
52
51
  "expose-loader": "~0.7.1",
53
52
  "faker": "^4.1.0",
54
- "husky": "^0.14.3",
55
53
  "jest": "^20.0.4",
56
54
  "json-loader": "~0.5.4",
57
55
  "progress-bar-webpack-plugin": "^1.10.0",
data/yarn.lock CHANGED
@@ -86,7 +86,11 @@
86
86
  dependencies:
87
87
  "@types/react" "*"
88
88
 
89
- "@types/react@*", "@types/react@^15.0.36":
89
+ "@types/react@*":
90
+ version "15.0.25"
91
+ resolved "https://registry.yarnpkg.com/@types/react/-/react-15.0.25.tgz#d396949cccc9a90b61755def9781e5aced9b2261"
92
+
93
+ "@types/react@^15.0.36":
90
94
  version "15.0.36"
91
95
  resolved "https://registry.yarnpkg.com/@types/react/-/react-15.0.36.tgz#35cb9153eaaae0750ea50e0a8eaee1d93f42c189"
92
96
 
@@ -206,7 +210,22 @@ anymatch@^1.3.0:
206
210
  arrify "^1.0.0"
207
211
  micromatch "^2.1.5"
208
212
 
209
- apollo-client@^1.4.0, apollo-client@^1.8.0:
213
+ apollo-client@^1.4.0:
214
+ version "1.7.0"
215
+ resolved "https://registry.yarnpkg.com/apollo-client/-/apollo-client-1.7.0.tgz#3d6fdf6ead0a07d3e02d32d9191f26cbcfb6e4f6"
216
+ dependencies:
217
+ graphql "^0.10.0"
218
+ graphql-anywhere "^3.0.1"
219
+ graphql-tag "^2.0.0"
220
+ redux "^3.4.0"
221
+ symbol-observable "^1.0.2"
222
+ whatwg-fetch "^2.0.0"
223
+ optionalDependencies:
224
+ "@types/async" "^2.0.31"
225
+ "@types/graphql" "^0.9.0"
226
+ "@types/isomorphic-fetch" "0.0.34"
227
+
228
+ apollo-client@^1.8.0:
210
229
  version "1.8.0"
211
230
  resolved "https://registry.yarnpkg.com/apollo-client/-/apollo-client-1.8.0.tgz#3b5d1976a06a0f82b2fc66fe71754868193dadb9"
212
231
  dependencies:
@@ -2872,14 +2891,6 @@ https-browserify@0.0.1:
2872
2891
  version "0.0.1"
2873
2892
  resolved "https://registry.yarnpkg.com/https-browserify/-/https-browserify-0.0.1.tgz#3f91365cabe60b77ed0ebba24b454e3e09d95a82"
2874
2893
 
2875
- husky@^0.14.3:
2876
- version "0.14.3"
2877
- resolved "https://registry.yarnpkg.com/husky/-/husky-0.14.3.tgz#c69ed74e2d2779769a17ba8399b54ce0b63c12c3"
2878
- dependencies:
2879
- is-ci "^1.0.10"
2880
- normalize-path "^1.0.0"
2881
- strip-indent "^2.0.0"
2882
-
2883
2894
  iconv-lite@0.4.13:
2884
2895
  version "0.4.13"
2885
2896
  resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.4.13.tgz#1f88aba4ab0b1508e8312acc39345f36e992e2f2"
@@ -4054,10 +4065,6 @@ normalize-package-data@^2.3.2:
4054
4065
  semver "2 || 3 || 4 || 5"
4055
4066
  validate-npm-package-license "^3.0.1"
4056
4067
 
4057
- normalize-path@^1.0.0:
4058
- version "1.0.0"
4059
- resolved "https://registry.yarnpkg.com/normalize-path/-/normalize-path-1.0.0.tgz#32d0e472f91ff345701c15a8311018d3b0a90379"
4060
-
4061
4068
  normalize-path@^2.0.1:
4062
4069
  version "2.1.1"
4063
4070
  resolved "https://registry.yarnpkg.com/normalize-path/-/normalize-path-2.1.1.tgz#1ab28b556e198363a8c1a6f7e6fa20137fe6aed9"
@@ -5181,10 +5188,6 @@ strip-eof@^1.0.0:
5181
5188
  version "1.0.0"
5182
5189
  resolved "https://registry.yarnpkg.com/strip-eof/-/strip-eof-1.0.0.tgz#bb43ff5598a6eb05d89b59fcd129c983313606bf"
5183
5190
 
5184
- strip-indent@^2.0.0:
5185
- version "2.0.0"
5186
- resolved "https://registry.yarnpkg.com/strip-indent/-/strip-indent-2.0.0.tgz#5ef8db295d01e6ed6cbf7aab96998d7822527b68"
5187
-
5188
5191
  strip-json-comments@~2.0.1:
5189
5192
  version "2.0.1"
5190
5193
  resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-2.0.1.tgz#3c531942e908c2697c0ec344858c286c7ca0a60a"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: decidim
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
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: 2017-07-12 00:00:00.000000000 Z
13
+ date: 2017-07-20 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: decidim-core
@@ -18,154 +18,154 @@ dependencies:
18
18
  requirements:
19
19
  - - '='
20
20
  - !ruby/object:Gem::Version
21
- version: 0.4.0
21
+ version: 0.4.1
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.4.0
28
+ version: 0.4.1
29
29
  - !ruby/object:Gem::Dependency
30
30
  name: decidim-system
31
31
  requirement: !ruby/object:Gem::Requirement
32
32
  requirements:
33
33
  - - '='
34
34
  - !ruby/object:Gem::Version
35
- version: 0.4.0
35
+ version: 0.4.1
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.4.0
42
+ version: 0.4.1
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.4.0
49
+ version: 0.4.1
50
50
  type: :runtime
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.4.0
56
+ version: 0.4.1
57
57
  - !ruby/object:Gem::Dependency
58
58
  name: decidim-api
59
59
  requirement: !ruby/object:Gem::Requirement
60
60
  requirements:
61
61
  - - '='
62
62
  - !ruby/object:Gem::Version
63
- version: 0.4.0
63
+ version: 0.4.1
64
64
  type: :runtime
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.4.0
70
+ version: 0.4.1
71
71
  - !ruby/object:Gem::Dependency
72
72
  name: decidim-pages
73
73
  requirement: !ruby/object:Gem::Requirement
74
74
  requirements:
75
75
  - - '='
76
76
  - !ruby/object:Gem::Version
77
- version: 0.4.0
77
+ version: 0.4.1
78
78
  type: :runtime
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.4.0
84
+ version: 0.4.1
85
85
  - !ruby/object:Gem::Dependency
86
86
  name: decidim-comments
87
87
  requirement: !ruby/object:Gem::Requirement
88
88
  requirements:
89
89
  - - '='
90
90
  - !ruby/object:Gem::Version
91
- version: 0.4.0
91
+ version: 0.4.1
92
92
  type: :runtime
93
93
  prerelease: false
94
94
  version_requirements: !ruby/object:Gem::Requirement
95
95
  requirements:
96
96
  - - '='
97
97
  - !ruby/object:Gem::Version
98
- version: 0.4.0
98
+ version: 0.4.1
99
99
  - !ruby/object:Gem::Dependency
100
100
  name: decidim-meetings
101
101
  requirement: !ruby/object:Gem::Requirement
102
102
  requirements:
103
103
  - - '='
104
104
  - !ruby/object:Gem::Version
105
- version: 0.4.0
105
+ version: 0.4.1
106
106
  type: :runtime
107
107
  prerelease: false
108
108
  version_requirements: !ruby/object:Gem::Requirement
109
109
  requirements:
110
110
  - - '='
111
111
  - !ruby/object:Gem::Version
112
- version: 0.4.0
112
+ version: 0.4.1
113
113
  - !ruby/object:Gem::Dependency
114
114
  name: decidim-proposals
115
115
  requirement: !ruby/object:Gem::Requirement
116
116
  requirements:
117
117
  - - '='
118
118
  - !ruby/object:Gem::Version
119
- version: 0.4.0
119
+ version: 0.4.1
120
120
  type: :runtime
121
121
  prerelease: false
122
122
  version_requirements: !ruby/object:Gem::Requirement
123
123
  requirements:
124
124
  - - '='
125
125
  - !ruby/object:Gem::Version
126
- version: 0.4.0
126
+ version: 0.4.1
127
127
  - !ruby/object:Gem::Dependency
128
128
  name: decidim-results
129
129
  requirement: !ruby/object:Gem::Requirement
130
130
  requirements:
131
131
  - - '='
132
132
  - !ruby/object:Gem::Version
133
- version: 0.4.0
133
+ version: 0.4.1
134
134
  type: :runtime
135
135
  prerelease: false
136
136
  version_requirements: !ruby/object:Gem::Requirement
137
137
  requirements:
138
138
  - - '='
139
139
  - !ruby/object:Gem::Version
140
- version: 0.4.0
140
+ version: 0.4.1
141
141
  - !ruby/object:Gem::Dependency
142
142
  name: decidim-budgets
143
143
  requirement: !ruby/object:Gem::Requirement
144
144
  requirements:
145
145
  - - '='
146
146
  - !ruby/object:Gem::Version
147
- version: 0.4.0
147
+ version: 0.4.1
148
148
  type: :runtime
149
149
  prerelease: false
150
150
  version_requirements: !ruby/object:Gem::Requirement
151
151
  requirements:
152
152
  - - '='
153
153
  - !ruby/object:Gem::Version
154
- version: 0.4.0
154
+ version: 0.4.1
155
155
  - !ruby/object:Gem::Dependency
156
156
  name: decidim-surveys
157
157
  requirement: !ruby/object:Gem::Requirement
158
158
  requirements:
159
159
  - - '='
160
160
  - !ruby/object:Gem::Version
161
- version: 0.4.0
161
+ version: 0.4.1
162
162
  type: :runtime
163
163
  prerelease: false
164
164
  version_requirements: !ruby/object:Gem::Requirement
165
165
  requirements:
166
166
  - - '='
167
167
  - !ruby/object:Gem::Version
168
- version: 0.4.0
168
+ version: 0.4.1
169
169
  - !ruby/object:Gem::Dependency
170
170
  name: bundler
171
171
  requirement: !ruby/object:Gem::Requirement
@@ -235,6 +235,7 @@ files:
235
235
  - ".ruby-version"
236
236
  - ".travis.yml"
237
237
  - ".yardopts"
238
+ - CHANGELOG.md
238
239
  - CODE_OF_CONDUCT.md
239
240
  - Dockerfile
240
241
  - Gemfile
@@ -404,14 +405,12 @@ files:
404
405
  - decidim-admin/app/jobs/decidim/admin/newsletter_delivery_job.rb
405
406
  - decidim-admin/app/jobs/decidim/admin/newsletter_job.rb
406
407
  - decidim-admin/app/mailers/decidim/admin/application_mailer.rb
407
- - decidim-admin/app/models/decidim/admin/abilities/admin_user.rb
408
- - decidim-admin/app/models/decidim/admin/abilities/base.rb
409
- - decidim-admin/app/models/decidim/admin/abilities/collaborator_user.rb
410
- - decidim-admin/app/models/decidim/admin/abilities/participatory_process_admin.rb
408
+ - decidim-admin/app/models/decidim/admin/abilities/admin_ability.rb
409
+ - decidim-admin/app/models/decidim/admin/abilities/base_ability.rb
410
+ - decidim-admin/app/models/decidim/admin/abilities/participatory_process_admin_ability.rb
411
+ - decidim-admin/app/models/decidim/admin/abilities/participatory_process_collaborator_ability.rb
412
+ - decidim-admin/app/models/decidim/admin/abilities/participatory_process_moderator_ability.rb
411
413
  - decidim-admin/app/models/decidim/admin/application_record.rb
412
- - decidim-admin/app/models/decidim/admin/participatory_process_user_role.rb
413
- - decidim-admin/app/queries/decidim/admin/manageable_participatory_processes_for_user.rb
414
- - decidim-admin/app/queries/decidim/admin/process_admin_roles_for_process.rb
415
414
  - decidim-admin/app/queries/decidim/admin/process_admins.rb
416
415
  - decidim-admin/app/queries/decidim/admin/user_groups_evaluation.rb
417
416
  - decidim-admin/app/views/decidim/admin/attachments/_form.html.erb
@@ -506,7 +505,7 @@ files:
506
505
  - decidim-admin/config/routes.rb
507
506
  - decidim-admin/db/migrate/20161102144648_add_admin_participatory_process_user_roles.rb
508
507
  - decidim-admin/db/migrate/20170128112958_change_user_groups_verified_to_timestamp.rb
509
- - decidim-admin/db/seeds.rb
508
+ - decidim-admin/db/migrate/20170714083651_rename_participatory_process_user_roles_table.rb
510
509
  - decidim-admin/decidim-admin.gemspec
511
510
  - decidim-admin/lib/decidim/admin.rb
512
511
  - decidim-admin/lib/decidim/admin/engine.rb
@@ -585,13 +584,10 @@ files:
585
584
  - decidim-admin/spec/jobs/export_job_spec.rb
586
585
  - decidim-admin/spec/jobs/newsletter_delivery_job_spec.rb
587
586
  - decidim-admin/spec/jobs/newsletter_job_spec.rb
588
- - decidim-admin/spec/models/abilities/admin_user_spec.rb
589
- - decidim-admin/spec/models/abilities/collaborator_user_spec.rb
590
- - decidim-admin/spec/models/abilities/participatory_process_admin_spec.rb
591
- - decidim-admin/spec/models/participatory_process_user_role_spec.rb
587
+ - decidim-admin/spec/models/abilities/admin_ability_spec.rb
588
+ - decidim-admin/spec/models/abilities/participatory_process_admin_ability_spec.rb
589
+ - decidim-admin/spec/models/abilities/participatory_process_collaborator_ability_spec.rb
592
590
  - decidim-admin/spec/organization_dashboard_constraint_spec.rb
593
- - decidim-admin/spec/queries/manageable_participatory_processes_for_user_spec.rb
594
- - decidim-admin/spec/queries/process_admin_roles_for_process_spec.rb
595
591
  - decidim-admin/spec/queries/process_admins_spec.rb
596
592
  - decidim-admin/spec/queries/user_group_evaluation_spec.rb
597
593
  - decidim-admin/spec/shared/manage_process_admins_examples.rb
@@ -791,8 +787,10 @@ files:
791
787
  - decidim-comments/app/frontend/support/resolve_graphql_query.ts
792
788
  - decidim-comments/app/frontend/support/schema.ts
793
789
  - decidim-comments/app/mailers/decidim/comments/comment_notification_mailer.rb
794
- - decidim-comments/app/models/decidim/comments/abilities/admin_user.rb
795
- - decidim-comments/app/models/decidim/comments/abilities/process_admin_user.rb
790
+ - decidim-comments/app/models/decidim/comments/abilities/admin_ability.rb
791
+ - decidim-comments/app/models/decidim/comments/abilities/current_user_ability.rb
792
+ - decidim-comments/app/models/decidim/comments/abilities/participatory_process_admin_ability.rb
793
+ - decidim-comments/app/models/decidim/comments/abilities/participatory_process_moderator_ability.rb
796
794
  - decidim-comments/app/models/decidim/comments/application_record.rb
797
795
  - decidim-comments/app/models/decidim/comments/comment.rb
798
796
  - decidim-comments/app/models/decidim/comments/comment_vote.rb
@@ -852,8 +850,8 @@ files:
852
850
  - decidim-comments/spec/lib/comment_serializer_spec.rb
853
851
  - decidim-comments/spec/lib/export_spec.rb
854
852
  - decidim-comments/spec/mailers/comment_notification_mailer_spec.rb
855
- - decidim-comments/spec/models/abilities/admin_user_spec.rb
856
- - decidim-comments/spec/models/abilities/process_admin_user_spec.rb
853
+ - decidim-comments/spec/models/abilities/admin_ability_spec.rb
854
+ - decidim-comments/spec/models/abilities/participatory_process_admin_ability_spec.rb
857
855
  - decidim-comments/spec/models/comment_spec.rb
858
856
  - decidim-comments/spec/models/comment_vote_spec.rb
859
857
  - decidim-comments/spec/models/seed_spec.rb
@@ -961,7 +959,6 @@ files:
961
959
  - decidim-meetings/app/views/decidim/meetings/admin/meetings/edit.html.erb
962
960
  - decidim-meetings/app/views/decidim/meetings/admin/meetings/index.html.erb
963
961
  - decidim-meetings/app/views/decidim/meetings/admin/meetings/new.html.erb
964
- - decidim-meetings/app/views/decidim/meetings/meeting_widgets/.erb
965
962
  - decidim-meetings/app/views/decidim/meetings/meeting_widgets/show.html.erb
966
963
  - decidim-meetings/app/views/decidim/meetings/meetings/_datetime.html.erb
967
964
  - decidim-meetings/app/views/decidim/meetings/meetings/_filters.html.erb
@@ -1094,9 +1091,10 @@ files:
1094
1091
  - decidim-proposals/app/helpers/decidim/proposals/application_helper.rb
1095
1092
  - decidim-proposals/app/helpers/decidim/proposals/map_helper.rb
1096
1093
  - decidim-proposals/app/helpers/decidim/proposals/proposal_votes_helper.rb
1097
- - decidim-proposals/app/models/decidim/proposals/abilities/admin_user.rb
1098
- - decidim-proposals/app/models/decidim/proposals/abilities/current_user.rb
1099
- - decidim-proposals/app/models/decidim/proposals/abilities/process_admin_user.rb
1094
+ - decidim-proposals/app/models/decidim/proposals/abilities/admin_ability.rb
1095
+ - decidim-proposals/app/models/decidim/proposals/abilities/current_user_ability.rb
1096
+ - decidim-proposals/app/models/decidim/proposals/abilities/participatory_process_admin_ability.rb
1097
+ - decidim-proposals/app/models/decidim/proposals/abilities/participatory_process_moderator_ability.rb
1100
1098
  - decidim-proposals/app/models/decidim/proposals/application_record.rb
1101
1099
  - decidim-proposals/app/models/decidim/proposals/proposal.rb
1102
1100
  - decidim-proposals/app/models/decidim/proposals/proposal_vote.rb
@@ -1182,8 +1180,8 @@ files:
1182
1180
  - decidim-proposals/spec/helpers/proposal_votes_helper_spec.rb
1183
1181
  - decidim-proposals/spec/i18n_spec.rb
1184
1182
  - decidim-proposals/spec/lib/decidim/proposals/feature_spec.rb
1185
- - decidim-proposals/spec/models/decidim/proposals/abilities/admin_user_spec.rb
1186
- - decidim-proposals/spec/models/decidim/proposals/abilities/process_admin_user_spec.rb
1183
+ - decidim-proposals/spec/models/decidim/proposals/abilities/admin_ability_spec.rb
1184
+ - decidim-proposals/spec/models/decidim/proposals/abilities/participatory_process_admin_ability.rb
1187
1185
  - decidim-proposals/spec/models/decidim/proposals/proposal_spec.rb
1188
1186
  - decidim-proposals/spec/models/decidim/proposals/proposal_vote_spec.rb
1189
1187
  - decidim-proposals/spec/queries/decidim/proposals/filtered_proposals_spec.rb
@@ -1284,9 +1282,9 @@ files:
1284
1282
  - decidim-surveys/app/forms/decidim/surveys/survey_answer_form.rb
1285
1283
  - decidim-surveys/app/forms/decidim/surveys/survey_form.rb
1286
1284
  - decidim-surveys/app/helpers/decidim/surveys/admin/application_helper.rb
1287
- - decidim-surveys/app/models/decidim/surveys/abilities/admin_user.rb
1288
- - decidim-surveys/app/models/decidim/surveys/abilities/current_user.rb
1289
- - decidim-surveys/app/models/decidim/surveys/abilities/process_admin_user.rb
1285
+ - decidim-surveys/app/models/decidim/surveys/abilities/admin_ability.rb
1286
+ - decidim-surveys/app/models/decidim/surveys/abilities/current_user_ability.rb
1287
+ - decidim-surveys/app/models/decidim/surveys/abilities/participatory_process_admin_ability.rb
1290
1288
  - decidim-surveys/app/models/decidim/surveys/application_record.rb
1291
1289
  - decidim-surveys/app/models/decidim/surveys/survey.rb
1292
1290
  - decidim-surveys/app/models/decidim/surveys/survey_answer.rb
@@ -1333,9 +1331,9 @@ files:
1333
1331
  - decidim-surveys/spec/forms/decidim/surveys/admin/survey_question_form_spec.rb
1334
1332
  - decidim-surveys/spec/forms/decidim/surveys/survey_answer_form_spec.rb
1335
1333
  - decidim-surveys/spec/forms/decidim/surveys/survey_form_spec.rb
1336
- - decidim-surveys/spec/models/decidim/surveys/abilities/admin_user_spec.rb
1337
- - decidim-surveys/spec/models/decidim/surveys/abilities/current_user_spec.rb
1338
- - decidim-surveys/spec/models/decidim/surveys/abilities/process_admin_user_spec.rb
1334
+ - decidim-surveys/spec/models/decidim/surveys/abilities/admin_ability_spec.rb
1335
+ - decidim-surveys/spec/models/decidim/surveys/abilities/current_user_ability_spec.rb
1336
+ - decidim-surveys/spec/models/decidim/surveys/abilities/participatory_process_admin_ability_spec.rb
1339
1337
  - decidim-surveys/spec/models/decidim/surveys/survey_answer_spec.rb
1340
1338
  - decidim-surveys/spec/models/decidim/surveys/survey_question_spec.rb
1341
1339
  - decidim-surveys/spec/models/decidim/surveys/survey_spec.rb