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 +4 -4
- data/app/commands/decidim/system/register_organization.rb +2 -0
- data/app/commands/decidim/system/update_organization.rb +1 -0
- data/app/forms/decidim/system/register_organization_form.rb +1 -0
- data/app/forms/decidim/system/update_organization_form.rb +1 -0
- data/app/views/decidim/system/admins/index.html.erb +1 -1
- data/app/views/decidim/system/admins/show.html.erb +1 -1
- data/app/views/decidim/system/devise/passwords/edit.html.erb +1 -1
- data/app/views/decidim/system/devise/shared/_links.html.erb +6 -6
- data/app/views/decidim/system/organizations/edit.html.erb +5 -0
- data/app/views/decidim/system/organizations/index.html.erb +1 -1
- data/app/views/decidim/system/organizations/new.html.erb +5 -0
- data/app/views/decidim/system/organizations/show.html.erb +1 -2
- data/app/views/layouts/decidim/system/_header.html.erb +1 -1
- data/lib/decidim/system/version.rb +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e5d758de1f3a09c4ad6cad68bd4ea27329e9d7d6e4bce89b2f16ffd70b3df0e7
|
4
|
+
data.tar.gz: 480943b81bca5597146e07d413bbffc2bc9600f38eb39c4fcf4ae83658101ee4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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, [
|
@@ -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,
|
@@ -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" %>
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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
|