decidim-system 0.18.1 → 0.19.0

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

Potentially problematic release.


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

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 949bf38186129d11e94a8ae80b4e4c002a6ddcf42dcc29070e7c0991769ddba1
4
- data.tar.gz: 830b35b770189fcfc09f6f0440e111b2c6d64665b15fa8a32d2d19421c650035
3
+ metadata.gz: e5d758de1f3a09c4ad6cad68bd4ea27329e9d7d6e4bce89b2f16ffd70b3df0e7
4
+ data.tar.gz: 480943b81bca5597146e07d413bbffc2bc9600f38eb39c4fcf4ae83658101ee4
5
5
  SHA512:
6
- metadata.gz: ec1900e6ef0d06e7143a8ae43266c97f75466243415a698f0189a044fcac962ad783edac614a0c21ceb5d6f8113e727aa99870fc247c139f110e3da76abac536
7
- data.tar.gz: fe357615a266eaf1fd677c577dfbd068b65c5c2c601fbd4f6cd186bb78c4699e344967e3155cb7977adafca75b7d15c3c1e29502848a0aa46a1472f41e7d5075
6
+ metadata.gz: 31acfb8359e26941f16df97c9bd167c75078699870f150de531c9ec8fc5852ff75718c18a27c236f3049e7287223197b6c7938a89a2019566b96577596340af4
7
+ data.tar.gz: bea0fac7779a57096841d283f9b771a4c5352c1595fd9103677419c5210ed9e0b3462f86a45bbf03e77a29a4fc261ba16117da33434437eae3491fe5246c003f
@@ -21,6 +21,7 @@ module Decidim
21
21
  # Returns nothing.
22
22
  def call
23
23
  return broadcast(:invalid) if form.invalid?
24
+
24
25
  @organization = nil
25
26
  invite_form = nil
26
27
 
@@ -52,6 +53,7 @@ module Decidim
52
53
  available_locales: form.available_locales,
53
54
  available_authorizations: form.clean_available_authorizations,
54
55
  users_registration_mode: form.users_registration_mode,
56
+ force_users_to_authenticate_before_access_organization: form.force_users_to_authenticate_before_access_organization,
55
57
  badges_enabled: true,
56
58
  user_groups_enabled: true,
57
59
  default_locale: form.default_locale,
@@ -44,6 +44,7 @@ module Decidim
44
44
  organization.name = form.name
45
45
  organization.host = form.host
46
46
  organization.secondary_hosts = form.clean_secondary_hosts
47
+ organization.force_users_to_authenticate_before_access_organization = form.force_users_to_authenticate_before_access_organization
47
48
  organization.available_authorizations = form.clean_available_authorizations
48
49
  organization.users_registration_mode = form.users_registration_mode
49
50
  organization.smtp_settings = form.encrypted_smtp_settings
@@ -16,6 +16,7 @@ module Decidim
16
16
  attribute :default_locale, String
17
17
  attribute :reference_prefix
18
18
  attribute :users_registration_mode, String
19
+ attribute :force_users_to_authenticate_before_access_organization, Boolean
19
20
 
20
21
  validates :organization_admin_email, :organization_admin_name, :name, :host, :reference_prefix, :users_registration_mode, presence: true
21
22
  validates :available_locales, presence: true
@@ -15,6 +15,7 @@ module Decidim
15
15
  attribute :name, String
16
16
  attribute :host, String
17
17
  attribute :secondary_hosts, String
18
+ attribute :force_users_to_authenticate_before_access_organization, Boolean
18
19
  attribute :available_authorizations, Array[String]
19
20
  attribute :users_registration_mode, String
20
21
  jsonb_attribute :smtp_settings, [
@@ -18,7 +18,7 @@
18
18
  <% @admins.each do |admin| %>
19
19
  <tr>
20
20
  <td>
21
- <%= link_to admin.email, admin %><br />
21
+ <%= link_to admin.email, admin %><br>
22
22
  </td>
23
23
  <td>
24
24
  <%= l admin.created_at, format: :short %>
@@ -3,7 +3,7 @@
3
3
  <% end %>
4
4
 
5
5
  <div class="actions">
6
- <hr />
6
+ <hr>
7
7
  <%= link_to "Edit", ["edit", @admin] %>
8
8
  <%= link_to "Destroy", @admin, method: :delete, class: "alert button", data: { confirm: "Are you sure you want to do this?" } %>
9
9
  </div>
@@ -6,7 +6,7 @@
6
6
 
7
7
  <div class="field">
8
8
  <% if @minimum_password_length %>
9
- <em>(<%= @minimum_password_length %> characters minimum)</em><br />
9
+ <em>(<%= @minimum_password_length %> characters minimum)</em><br>
10
10
  <% end %>
11
11
  <%= f.password_field :password, autofocus: true, autocomplete: "off" %>
12
12
  </div>
@@ -1,25 +1,25 @@
1
1
  <%- if controller_name != 'sessions' %>
2
- <%= link_to "Log in", new_session_path(resource_name) %><br />
2
+ <%= link_to "Log in", new_session_path(resource_name) %><br>
3
3
  <% end -%>
4
4
 
5
5
  <%- if devise_mapping.registerable? && controller_name != 'registrations' %>
6
- <%= link_to "Sign up", new_registration_path(resource_name) %><br />
6
+ <%= link_to "Sign up", new_registration_path(resource_name) %><br>
7
7
  <% end -%>
8
8
 
9
9
  <%- if devise_mapping.recoverable? && controller_name != 'passwords' && controller_name != 'registrations' %>
10
- <%= link_to "Forgot your password?", new_password_path(resource_name) %><br />
10
+ <%= link_to "Forgot your password?", new_password_path(resource_name) %><br>
11
11
  <% end -%>
12
12
 
13
13
  <%- if devise_mapping.confirmable? && controller_name != 'confirmations' %>
14
- <%= link_to "Didn't receive confirmation instructions?", new_confirmation_path(resource_name) %><br />
14
+ <%= link_to "Didn't receive confirmation instructions?", new_confirmation_path(resource_name) %><br>
15
15
  <% end -%>
16
16
 
17
17
  <%- if devise_mapping.lockable? && resource_class.unlock_strategy_enabled?(:email) && controller_name != 'unlocks' %>
18
- <%= link_to "Didn't receive unlock instructions?", new_unlock_path(resource_name) %><br />
18
+ <%= link_to "Didn't receive unlock instructions?", new_unlock_path(resource_name) %><br>
19
19
  <% end -%>
20
20
 
21
21
  <%- if devise_mapping.omniauthable? %>
22
22
  <%- resource_class.omniauth_providers.each do |provider| %>
23
- <%= link_to "Sign in with #{OmniAuth::Utils.camelize(provider)}", omniauth_authorize_path(resource_name, provider) %><br />
23
+ <%= link_to "Sign in with #{OmniAuth::Utils.camelize(provider)}", omniauth_authorize_path(resource_name, provider) %><br>
24
24
  <% end -%>
25
25
  <% end -%>
@@ -12,6 +12,11 @@
12
12
  <p class="help-text"><%= t(".secondary_hosts_hint") %></p>
13
13
  </div>
14
14
 
15
+ <div class="field">
16
+ <%= f.label :force_authentication %>
17
+ <%= f.check_box :force_users_to_authenticate_before_access_organization %>
18
+ </div>
19
+
15
20
  <div class="field">
16
21
  <%= f.label :users_registration_mode %>
17
22
  <%= f.collection_radio_buttons :users_registration_mode,
@@ -18,7 +18,7 @@
18
18
  <% @organizations.each do |organization| %>
19
19
  <tr>
20
20
  <td>
21
- <%= link_to organization.name, organization %><br />
21
+ <%= link_to organization.name, organization %><br>
22
22
  <%= organization.host %>
23
23
  </td>
24
24
  <td>
@@ -53,6 +53,11 @@
53
53
  </div>
54
54
  <% end %>
55
55
 
56
+ <div class="field">
57
+ <%= f.label :force_authentication %>
58
+ <%= f.check_box :force_users_to_authenticate_before_access_organization %>
59
+ </div>
60
+
56
61
  <div class="field">
57
62
  <%= f.label :users_registration_mode %>
58
63
  <%= f.collection_radio_buttons :users_registration_mode,
@@ -5,7 +5,6 @@
5
5
  <% end %>
6
6
 
7
7
  <div class="actions">
8
- <hr />
8
+ <hr>
9
9
  <%= link_to t("decidim.system.actions.edit"), ["edit", @organization] %>
10
- <%= link_to t("decidim.system.actions.destroy"), @organization, method: :delete, class: "alert button", data: { confirm: t("decidim.system.actions.confirm_destroy") } %>
11
10
  </div>
@@ -1,4 +1,4 @@
1
- <meta name="viewport" content="width=device-width, initial-scale=1" />
1
+ <meta name="viewport" content="width=device-width, initial-scale=1">
2
2
  <%= csrf_meta_tags %>
3
3
  <%= stylesheet_link_tag "decidim/system/application", media: "all" %>
4
4
  <%= javascript_include_tag "decidim/system/application" %>
@@ -4,7 +4,7 @@ module Decidim
4
4
  # This holds the decidim-system version.
5
5
  module System
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-system
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
  - Josep Jaume Rey Peroy
@@ -32,28 +32,28 @@ dependencies:
32
32
  requirements:
33
33
  - - '='
34
34
  - !ruby/object:Gem::Version
35
- version: 0.18.1
35
+ version: 0.19.0
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.18.1
42
+ version: 0.19.0
43
43
  - !ruby/object:Gem::Dependency
44
44
  name: devise
45
45
  requirement: !ruby/object:Gem::Requirement
46
46
  requirements:
47
47
  - - "~>"
48
48
  - !ruby/object:Gem::Version
49
- version: '4.6'
49
+ version: '4.7'
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: '4.6'
56
+ version: '4.7'
57
57
  - !ruby/object:Gem::Dependency
58
58
  name: devise-i18n
59
59
  requirement: !ruby/object:Gem::Requirement
@@ -136,14 +136,14 @@ dependencies:
136
136
  requirements:
137
137
  - - '='
138
138
  - !ruby/object:Gem::Version
139
- version: 0.18.1
139
+ version: 0.19.0
140
140
  type: :development
141
141
  prerelease: false
142
142
  version_requirements: !ruby/object:Gem::Requirement
143
143
  requirements:
144
144
  - - '='
145
145
  - !ruby/object:Gem::Version
146
- version: 0.18.1
146
+ version: 0.19.0
147
147
  description: System administration to create new organization in an installation.
148
148
  email:
149
149
  - josepjaume@gmail.com