decidim-verifications 0.18.1 → 0.19.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (39) hide show
  1. checksums.yaml +4 -4
  2. data/app/commands/decidim/verifications/confirm_user_authorization.rb +2 -0
  3. data/app/controllers/decidim/verifications/authorizations_controller.rb +3 -3
  4. data/app/controllers/decidim/verifications/csv_census/admin/census_controller.rb +4 -18
  5. data/app/controllers/decidim/verifications/id_documents/authorizations_controller.rb +3 -0
  6. data/app/controllers/decidim/verifications/postal_letter/admin/postages_controller.rb +1 -1
  7. data/app/controllers/decidim/verifications/sms/authorizations_controller.rb +3 -3
  8. data/app/forms/decidim/verifications/sms/mobile_phone_form.rb +2 -0
  9. data/app/models/decidim/verifications/csv_census/data.rb +3 -3
  10. data/app/models/decidim/verifications/csv_datum.rb +2 -0
  11. data/app/views/decidim/verifications/authorizations/new.html.erb +1 -3
  12. data/app/views/decidim/verifications/csv_census/admin/census/index.html.erb +6 -0
  13. data/app/views/decidim/verifications/sms/authorizations/edit.html.erb +1 -1
  14. data/app/views/decidim/verifications/sms/authorizations/new.html.erb +1 -1
  15. data/config/locales/ar.yml +0 -1
  16. data/config/locales/ca.yml +1 -1
  17. data/config/locales/cs.yml +1 -1
  18. data/config/locales/de.yml +0 -1
  19. data/config/locales/en.yml +1 -1
  20. data/config/locales/es-MX.yml +1 -1
  21. data/config/locales/es-PY.yml +1 -1
  22. data/config/locales/es.yml +1 -1
  23. data/config/locales/eu.yml +0 -1
  24. data/config/locales/fi-plain.yml +1 -1
  25. data/config/locales/fi.yml +1 -1
  26. data/config/locales/fr.yml +1 -1
  27. data/config/locales/gl.yml +0 -1
  28. data/config/locales/hu.yml +1 -1
  29. data/config/locales/id-ID.yml +0 -1
  30. data/config/locales/it.yml +0 -1
  31. data/config/locales/nl.yml +2 -2
  32. data/config/locales/pl.yml +0 -1
  33. data/config/locales/pt-BR.yml +0 -1
  34. data/config/locales/pt.yml +0 -1
  35. data/config/locales/sv.yml +0 -1
  36. data/config/locales/tr-TR.yml +0 -1
  37. data/lib/decidim/verifications/version.rb +1 -1
  38. metadata +7 -8
  39. data/app/permissions/decidim/verifications/csv_census/admin/permissions.rb +0 -19
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9a57e34b1317afd65451dc3a5727c29accd3d31ef4fe63972f72b48069ea65bb
4
- data.tar.gz: f9bab0f27634fb8aa6bfe3b668f4f27f9f03af9132e078113b2552c5e67aec86
3
+ metadata.gz: 2031448fe03c504353397420e98549ea5f90c353591ac4b7846f3f119e3413df
4
+ data.tar.gz: 5d27d011a65c64c4cc2c8b5c2a6e5b75bbaaccca6a4af0f9998e76d7d23661a2
5
5
  SHA512:
6
- metadata.gz: 4284cbc4947adb36c66ff2bf4e22720c15b77a1c1d88d42ca1fc68b9fe9e1159db6074e4ab820f4e0ac0b4685b9c1bdda8cd32297f4e0c185f0fde550795d16f
7
- data.tar.gz: 35cbd8d30e70dc582e9951475acdc7a72223fa0e7834a0f403fd561ac62e67a4378e83bd7974cbd5c5d78f3e9a4b40ace8f7feeec141f68fd01a8d15c71bbc87
6
+ metadata.gz: ce6e22177bebe2537209cb415a70127fb53aff4a85822d271f5296c4893ff8fa7ae33da902b5b1abcf0a7c3de2ec48c2cb7d5532dca346ae88086b84c6e5fda0
7
+ data.tar.gz: 8dd934602ce6e073edc198e964207dec7ea3d6d052dea2a78f145ff6a13c0d5c25779e3b4b3abaa8e9c3adc440da99d57c05d4597a5465adf6688c8e288ec418
@@ -31,6 +31,8 @@ module Decidim
31
31
  else
32
32
  broadcast(:invalid)
33
33
  end
34
+ rescue StandardError => e
35
+ broadcast(:invalid, e.message)
34
36
  end
35
37
 
36
38
  protected
@@ -36,7 +36,7 @@ module Decidim
36
36
  AuthorizeUser.call(handler) do
37
37
  on(:ok) do
38
38
  flash[:notice] = t("authorizations.create.success", scope: "decidim.verifications")
39
- redirect_to params[:redirect_url] || authorizations_path
39
+ redirect_to redirect_url || authorizations_path
40
40
  end
41
41
 
42
42
  on(:invalid) do
@@ -88,9 +88,9 @@ module Decidim
88
88
  end
89
89
 
90
90
  def store_current_location
91
- return if params[:redirect_url].blank? || !request.format.html?
91
+ return if redirect_url.blank? || !request.format.html?
92
92
 
93
- store_location_for(:user, params[:redirect_url])
93
+ store_location_for(:user, redirect_url)
94
94
  end
95
95
  end
96
96
  end
@@ -5,26 +5,19 @@ module Decidim
5
5
  module CsvCensus
6
6
  module Admin
7
7
  class CensusController < Decidim::Admin::ApplicationController
8
- include NeedsPermission
9
-
10
8
  layout "decidim/admin/users"
11
9
 
12
10
  before_action :show_instructions,
13
11
  unless: :csv_census_active?
14
12
 
15
- register_permissions(::Decidim::Verifications::CsvCensus::Admin::CensusController,
16
- ::Decidim::Verifications::CsvCensus::Admin::Permissions,
17
- ::Decidim::Admin::Permissions,
18
- ::Decidim::Permissions)
19
-
20
13
  def index
21
- enforce_permission_to :index, CsvDatum
14
+ enforce_permission_to :index, :authorization
22
15
  @form = form(CensusDataForm).instance
23
16
  @status = Status.new(current_organization)
24
17
  end
25
18
 
26
19
  def create
27
- enforce_permission_to :create, CsvDatum
20
+ enforce_permission_to :create, :authorization
28
21
  @form = form(CensusDataForm).from_params(params)
29
22
  CreateCensusData.call(@form, current_organization) do
30
23
  on(:ok) do
@@ -39,7 +32,7 @@ module Decidim
39
32
  end
40
33
 
41
34
  def destroy_all
42
- enforce_permission_to :destroy, CsvDatum
35
+ enforce_permission_to :destroy, :authorization
43
36
  CsvDatum.clear(current_organization)
44
37
 
45
38
  redirect_to census_path, notice: t(".success")
@@ -48,20 +41,13 @@ module Decidim
48
41
  private
49
42
 
50
43
  def show_instructions
44
+ enforce_permission_to :index, :authorization
51
45
  render :instructions
52
46
  end
53
47
 
54
48
  def csv_census_active?
55
49
  current_organization.available_authorizations.include?("csv_census")
56
50
  end
57
-
58
- def permission_class_chain
59
- ::Decidim.permissions_registry.chain_for(::Decidim::Verifications::CsvCensus::Admin::CensusController)
60
- end
61
-
62
- def permission_scope
63
- :admin
64
- end
65
51
  end
66
52
  end
67
53
  end
@@ -13,11 +13,13 @@ module Decidim
13
13
 
14
14
  def choose
15
15
  return redirect_to action: :new, using: verification_type if available_methods.count == 1
16
+
16
17
  render :choose
17
18
  end
18
19
 
19
20
  def new
20
21
  raise ActionController::RoutingError, "Method not available" unless available_methods.include?(verification_type)
22
+
21
23
  enforce_permission_to :create, :authorization, authorization: @authorization
22
24
 
23
25
  @form = UploadForm.from_params(id_document_upload: { verification_type: verification_type })
@@ -92,6 +94,7 @@ module Decidim
92
94
 
93
95
  def authorization_verification_type
94
96
  return unless @authorization
97
+
95
98
  @authorization.verification_metadata["verification_type"]
96
99
  end
97
100
 
@@ -24,7 +24,7 @@ module Decidim
24
24
  end
25
25
 
26
26
  on(:invalid) do
27
- render json: { error: I18n.t("postages.create.error", scope: "decidim.verifications.postal_letter.admin") }, status: 422
27
+ render json: { error: I18n.t("postages.create.error", scope: "decidim.verifications.postal_letter.admin") }, status: :unprocessable_entity
28
28
  end
29
29
  end
30
30
  end
@@ -21,7 +21,7 @@ module Decidim
21
21
  on(:ok) do
22
22
  flash[:notice] = t("authorizations.create.success", scope: "decidim.verifications.sms")
23
23
  authorization_method = Decidim::Verifications::Adapter.from_element(authorization.name)
24
- redirect_to authorization_method.resume_authorization_path(redirect_url: params[:redirect_url])
24
+ redirect_to authorization_method.resume_authorization_path(redirect_url: redirect_url)
25
25
  end
26
26
  on(:invalid) do
27
27
  flash.now[:alert] = t("authorizations.create.error", scope: "decidim.verifications.sms")
@@ -45,8 +45,8 @@ module Decidim
45
45
  on(:ok) do
46
46
  flash[:notice] = t("authorizations.update.success", scope: "decidim.verifications.sms")
47
47
 
48
- if params[:redirect_url]
49
- redirect_to params[:redirect_url]
48
+ if redirect_url
49
+ redirect_to redirect_url
50
50
  else
51
51
  redirect_to decidim_verifications.authorizations_path
52
52
  end
@@ -25,6 +25,7 @@ module Decidim
25
25
  # When there's a phone number, sanitize it allowing only numbers and +.
26
26
  def mobile_phone_number
27
27
  return unless super
28
+
28
29
  super.gsub(/[^\+0-9]/, "")
29
30
  end
30
31
 
@@ -43,6 +44,7 @@ module Decidim
43
44
  return @verification_code if defined?(@verification_code)
44
45
 
45
46
  return unless sms_gateway.new(mobile_phone_number, generated_code).deliver_code
47
+
46
48
  @verification_code = generated_code
47
49
  end
48
50
 
@@ -20,7 +20,7 @@ module Decidim
20
20
  @values = []
21
21
  @errors = []
22
22
 
23
- CSV.foreach(@file, headers: true) do |row|
23
+ CSV.foreach(@file) do |row|
24
24
  process_row(row)
25
25
  end
26
26
  end
@@ -28,8 +28,8 @@ module Decidim
28
28
  private
29
29
 
30
30
  def process_row(row)
31
- user_mail = row["email"]
32
- if user_mail.present?
31
+ user_mail = row.first
32
+ if user_mail.present? && user_mail.match?(Devise.email_regexp)
33
33
  values << user_mail
34
34
  else
35
35
  errors << row
@@ -6,6 +6,8 @@ module Decidim
6
6
  belongs_to :organization, foreign_key: :decidim_organization_id,
7
7
  class_name: "Decidim::Organization"
8
8
 
9
+ validates :email, format: { with: ::Devise.email_regexp }
10
+
9
11
  def self.inside(organization)
10
12
  where(organization: organization)
11
13
  end
@@ -10,9 +10,7 @@
10
10
  <div class="columns large-6 medium-centered">
11
11
  <div class="card">
12
12
  <div class="card__content">
13
- <%= authorization_form_for(handler, url: authorizations_path(redirect_url: params[:redirect_url])) do |form| %>
14
- <%= form.error_for(:base) %>
15
-
13
+ <%= authorization_form_for(handler, url: authorizations_path(redirect_url: redirect_url)) do |form| %>
16
14
  <% if lookup_context.exists?(handler.to_partial_path, [], true) %>
17
15
  <%= render partial: handler.to_partial_path, locals: { handler: handler, form: form } %>
18
16
  <% else %>
@@ -28,6 +28,12 @@
28
28
  </div>
29
29
  <div class="card-section">
30
30
  <p><%= t("decidim.verifications.csv_census.admin.new.info") %></p>
31
+ <pre class="code-block">
32
+ user@example.org
33
+ user2@example.org
34
+ ...
35
+ ...
36
+ </pre>
31
37
  <%= form_tag census_path, multipart: true, class: "form" do %>
32
38
  <%= label_tag :name, t("admin.new.file", scope: "decidim.verifications.csv_census") %>
33
39
  <%= file_field_tag :file %>
@@ -10,7 +10,7 @@
10
10
  <div class="columns large-6 medium-centered">
11
11
  <div class="card">
12
12
  <div class="card__content">
13
- <%= decidim_form_for(@form, url: authorization_path(redirect_url: params[:redirect_url]), method: :put) do |form| %>
13
+ <%= decidim_form_for(@form, url: authorization_path(redirect_url: redirect_url), method: :put) do |form| %>
14
14
  <div class="field">
15
15
  <%= form.text_field :verification_code %>
16
16
  </div>
@@ -10,7 +10,7 @@
10
10
  <div class="columns large-6 medium-centered">
11
11
  <div class="card">
12
12
  <div class="card__content">
13
- <%= decidim_form_for(@form, url: authorization_path(redirect_url: params[:redirect_url])) do |form| %>
13
+ <%= decidim_form_for(@form, url: authorization_path(redirect_url: redirect_url)) do |form| %>
14
14
  <div class="field">
15
15
  <%= form.text_field :mobile_phone_number %>
16
16
  </div>
@@ -104,7 +104,6 @@ ar:
104
104
  title: تحتاج إلى تنشيط التعداد CSV لهذه المنظمة
105
105
  new:
106
106
  file: ".csv ملف مع بيانات رسائل البريد الإلكتروني"
107
- info: 'يجب أن يكون ملفًا بتنسيق CSV مع عمود واحد: البريد الإلكتروني'
108
107
  submit: رفع ملف
109
108
  title: تحميل إحصاء جديد
110
109
  authorizations:
@@ -104,7 +104,7 @@ ca:
104
104
  title: Necessites activar el cens csv d'aquesta organització
105
105
  new:
106
106
  file: "fitxer .csv amb dades de correus electrònics"
107
- info: 'Ha de ser un fitxer amb format CSV amb una columna: correu electrònic'
107
+ info: 'Ha de ser un document en format CSV amb una única columna indicant les adreces electròniques:'
108
108
  submit: Puja un document
109
109
  title: Puja un nou cens
110
110
  authorizations:
@@ -104,7 +104,7 @@ cs:
104
104
  title: Pro tuto organizaci musíte aktivovat csv sčítání
105
105
  new:
106
106
  file: ".csv soubor s daty e-mailů"
107
- info: 'Musí být soubor ve formátu CSV s jedním sloupcem: e-mail'
107
+ info: 'Must být souborem ve formátu CSV s pouze jedním sloupcem s e-mailovou adresou:'
108
108
  submit: Nahrát soubor
109
109
  title: Nahrajte nové sčítání
110
110
  authorizations:
@@ -104,7 +104,6 @@ de:
104
104
  title: Sie müssen die csv-Zählung für diese Organisation aktivieren
105
105
  new:
106
106
  file: "CSV-Datei mit E-Mail-Daten"
107
- info: 'Muss eine Datei im CSV-Format mit einer Spalte sein: E-Mail'
108
107
  submit: Datei hochladen
109
108
  title: Laden Sie eine neue Volkszählung hoch
110
109
  authorizations:
@@ -105,7 +105,7 @@ en:
105
105
  title: You need to activate the csv census for this organization
106
106
  new:
107
107
  file: ".csv file with emails data"
108
- info: 'Must be a file with CSV format with one column: email'
108
+ info: 'Must be a file in CSV format with only one column with the email address:'
109
109
  submit: Upload file
110
110
  title: Upload a new census
111
111
  authorizations:
@@ -104,7 +104,7 @@ es-MX:
104
104
  title: Necesitas activar el censo csv para esta organización.
105
105
  new:
106
106
  file: "archivo .csv con datos de correos electrónicos"
107
- info: 'Debe ser un archivo con formato CSV con una columna: correo electrónico'
107
+ info: 'Debe ser un archivo en formato CSV con sólo una columna con la dirección de correo electrónico:'
108
108
  submit: Subir archivo
109
109
  title: Subir un nuevo censo
110
110
  authorizations:
@@ -104,7 +104,7 @@ es-PY:
104
104
  title: Necesitas activar el censo csv para esta organización.
105
105
  new:
106
106
  file: "archivo .csv con datos de correos electrónicos"
107
- info: 'Debe ser un archivo con formato CSV con una columna: correo electrónico'
107
+ info: 'Debe ser un archivo en formato CSV con sólo una columna con la dirección de correo electrónico:'
108
108
  submit: Subir archivo
109
109
  title: Subir un nuevo censo
110
110
  authorizations:
@@ -104,7 +104,7 @@ es:
104
104
  title: Necesitas activar el censo csv para esta organización.
105
105
  new:
106
106
  file: "archivo .csv con datos de correos electrónicos"
107
- info: 'Debe ser un archivo con formato CSV con una columna: correo electrónico'
107
+ info: 'Debe ser un archivo en formato CSV con sólo una columna con la dirección de correo electrónico:'
108
108
  submit: Subir archivo
109
109
  title: Subir un nuevo censo
110
110
  authorizations:
@@ -104,7 +104,6 @@ eu:
104
104
  title: Erakunde honetarako Csv errolda aktibatu behar duzu
105
105
  new:
106
106
  file: ".csv fitxategia helbide elektronikoen datuekin"
107
- info: 'Fitxategi bat CSV formatuarekin izan behar da zutabe batekin: posta elektronikoa'
108
107
  submit: Kargatu fitxategia
109
108
  title: Kargatu zentsu berri bat
110
109
  authorizations:
@@ -104,7 +104,7 @@ fi-pl:
104
104
  title: Sinun on aktivoitava CSV-rekisteritiedot tälle organisaatiolle
105
105
  new:
106
106
  file: "sähköpostiosoitteet sisältävä .csv-tiedosto"
107
- info: 'On oltava CSV-muotoinen tiedosto, jossa on yksi sarake: sähköposti (sarakenimi "email")'
107
+ info: 'On oltava CSV-tiedosto, jossa on vain yksi sarake sähköpostiosoitteille:'
108
108
  submit: Lataa tiedosto
109
109
  title: Lataa uusi rekisteri
110
110
  authorizations:
@@ -104,7 +104,7 @@ fi:
104
104
  title: Sinun on aktivoitava CSV-rekisteritiedot tälle organisaatiolle
105
105
  new:
106
106
  file: "sähköpostiosoitteet sisältävä .csv-tiedosto"
107
- info: 'On oltava CSV-muotoinen tiedosto, jossa on yksi sarake: sähköposti (sarakenimi "email")'
107
+ info: 'On oltava CSV-tiedosto, jossa on vain yksi sarake sähköpostiosoitteille:'
108
108
  submit: Lataa tiedosto
109
109
  title: Lataa uusi rekisteri
110
110
  authorizations:
@@ -104,7 +104,7 @@ fr:
104
104
  title: Vous devez activer le recensement CSV pour cette organisation
105
105
  new:
106
106
  file: "Fichier .csv avec données de courrier électronique"
107
- info: 'Doit être un fichier au format CSV avec une colonne: email'
107
+ info: 'Doit être un fichier au format CSV avec une seule colonne avec l''adresse e-mail :'
108
108
  submit: Téléverser un fichier
109
109
  title: Télécharger un nouveau recensement
110
110
  authorizations:
@@ -104,7 +104,6 @@ gl:
104
104
  title: Debe activar o censo de csv para esta organización
105
105
  new:
106
106
  file: "Ficheiro .csv con datos de correo electrónico"
107
- info: 'Debe ser un ficheiro con formato CSV cunha columna: correo electrónico'
108
107
  submit: Cargar ficheiro
109
108
  title: Suba un novo censo
110
109
  authorizations:
@@ -104,7 +104,7 @@ hu:
104
104
  title: Ennek a szervezetnek aktiválnia kell a csv népszámlálást
105
105
  new:
106
106
  file: ".csv fájl e-mail adatokkal"
107
- info: 'CSV formátumú fájlnak kell lennie egy oszlopban: e-mail'
107
+ info: 'CSV formátumú fájl lehet csak egy oszloppal, amely az email címeket tartalmazza:'
108
108
  submit: Fájl feltöltés
109
109
  title: Töltsön fel egy új népszámlálást
110
110
  authorizations:
@@ -104,7 +104,6 @@ id:
104
104
  title: Anda perlu mengaktifkan sensus csv untuk organisasi ini
105
105
  new:
106
106
  file: "File .csv dengan data email"
107
- info: 'Harus berupa file dengan format CSV dengan satu kolom: email'
108
107
  submit: Unggah data
109
108
  title: Unggah sensus baru
110
109
  authorizations:
@@ -104,7 +104,6 @@ it:
104
104
  title: È necessario attivare il censimento CSV per questa organizzazione
105
105
  new:
106
106
  file: "file .csv con dati di posta elettronica"
107
- info: 'Deve essere un file con formato CSV con una colonna: email'
108
107
  submit: Caricare un file
109
108
  title: Carica un nuovo censimento
110
109
  authorizations:
@@ -54,7 +54,7 @@ nl:
54
54
  explanation: Wordt geverifieerd aan de hand van de volkstelling van de organisatie
55
55
  name: De volkstelling van de organisatie
56
56
  direct: direct
57
- help: Helpen
57
+ help: Help
58
58
  id_documents:
59
59
  explanation: Upload uw identiteitsdocumenten zodat we uw identiteit kunnen controleren
60
60
  name: Identiteitsdocumenten
@@ -104,7 +104,7 @@ nl:
104
104
  title: U moet de csv-telling voor deze organisatie activeren
105
105
  new:
106
106
  file: ".csv-bestand met e-mailgegevens"
107
- info: 'Moet een bestand zijn met CSV-indeling met één kolom: e-mail'
107
+ info: 'Moet een bestand zijn in CSV formaat met slechts één kolom met het e-mailadres:'
108
108
  submit: Upload bestand
109
109
  title: Upload een nieuwe telling
110
110
  authorizations:
@@ -104,7 +104,6 @@ pl:
104
104
  title: Musisz aktywować spis csv dla tej organizacji
105
105
  new:
106
106
  file: "Plik .csv z danymi e-maili"
107
- info: 'Musi to być plik w formacie CSV z jedną kolumną: e-mail'
108
107
  submit: Przesyłanie pliku
109
108
  title: Prześlij nowy spis ludności
110
109
  authorizations:
@@ -104,7 +104,6 @@ pt-BR:
104
104
  title: Você precisa ativar o censo csv para esta organização
105
105
  new:
106
106
  file: "arquivo .csv com dados de e-mails"
107
- info: 'Deve ser um arquivo com formato CSV com uma coluna: email'
108
107
  submit: Subir arquivo
109
108
  title: Carregar um novo censo
110
109
  authorizations:
@@ -104,7 +104,6 @@ pt:
104
104
  title: Você precisa ativar o censo csv para esta organização
105
105
  new:
106
106
  file: "arquivo .csv com dados de e-mails"
107
- info: 'Deve ser um arquivo com formato CSV com uma coluna: email'
108
107
  submit: Subir arquivo
109
108
  title: Carregar um novo censo
110
109
  authorizations:
@@ -104,7 +104,6 @@ sv:
104
104
  title: Du måste aktivera medlemsuppgifter via CSV för organisationen
105
105
  new:
106
106
  file: ".csv-fil med e-postadresser"
107
- info: 'Måste vara en fil i CSV-format med en kolumn: e-postadress'
108
107
  submit: Skicka in fil
109
108
  title: Skicka in nya medlemsuppgifter
110
109
  authorizations:
@@ -104,7 +104,6 @@ tr:
104
104
  title: Bu kuruluş için csv sayımını etkinleştirmeniz gerekir
105
105
  new:
106
106
  file: "e-posta verileri içeren .csv dosyası"
107
- info: 'Tek sütunlu CSV biçiminde bir dosya olmalı: e-posta'
108
107
  submit: Dosya yükleme
109
108
  title: Yeni bir nüfus sayımı yükleyin
110
109
  authorizations:
@@ -4,7 +4,7 @@ module Decidim
4
4
  # This holds the decidim-verifications version.
5
5
  module Verifications
6
6
  def self.version
7
- "0.18.1"
7
+ "0.19.0"
8
8
  end
9
9
  end
10
10
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: decidim-verifications
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.18.1
4
+ version: 0.19.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Rodriguez
@@ -16,42 +16,42 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 0.18.1
19
+ version: 0.19.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 0.18.1
26
+ version: 0.19.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: decidim-admin
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - '='
32
32
  - !ruby/object:Gem::Version
33
- version: 0.18.1
33
+ version: 0.19.0
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - '='
39
39
  - !ruby/object:Gem::Version
40
- version: 0.18.1
40
+ version: 0.19.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: decidim-dev
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - '='
46
46
  - !ruby/object:Gem::Version
47
- version: 0.18.1
47
+ version: 0.19.0
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - '='
53
53
  - !ruby/object:Gem::Version
54
- version: 0.18.1
54
+ version: 0.19.0
55
55
  description: Several verification methods for your decidim instance
56
56
  email:
57
57
  - deivid.rodriguez@riseup.net
@@ -100,7 +100,6 @@ files:
100
100
  - app/models/decidim/verifications/csv_census/data.rb
101
101
  - app/models/decidim/verifications/csv_census/status.rb
102
102
  - app/models/decidim/verifications/csv_datum.rb
103
- - app/permissions/decidim/verifications/csv_census/admin/permissions.rb
104
103
  - app/presenters/decidim/verifications/id_documents/authorization_presenter.rb
105
104
  - app/presenters/decidim/verifications/postal_letter/authorization_presenter.rb
106
105
  - app/queries/decidim/verifications/authorizations.rb
@@ -1,19 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Decidim
4
- module Verifications
5
- module CsvCensus
6
- module Admin
7
- class Permissions < Decidim::DefaultPermissions
8
- def permissions
9
- return permission_action if permission_action.scope != :admin
10
- if user.organization.available_authorizations.include?("csv_census")
11
- allow! if permission_action.subject == Decidim::Verifications::CsvDatum
12
- permission_action
13
- end
14
- end
15
- end
16
- end
17
- end
18
- end
19
- end