lato_spaces 3.1.17 → 3.1.18

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9b25b1e4b0e02517fe18a1bc48ff500144da42a355987413765e4713de3a54ca
4
- data.tar.gz: f31fc243884f025644cdc2442c1f2cff8f9ebe5d1225ba6ef567465fb2dbeac9
3
+ metadata.gz: ca069ac683742459fe2a713c81b957d18dddceb0ac29e418a357c7752632c305
4
+ data.tar.gz: 92578aa2ebf866851e83533a512bcc5ed0e3e0c7f46f6decbe9ddab51fd16bff
5
5
  SHA512:
6
- metadata.gz: 1a58156e471fd6476a24e00687e628d6e31c0ec0a5fbd4a806410bec06c1f48de268aca8056a728ca80f64720de909b855d515a1251f89d7889f6dbd2a778a41
7
- data.tar.gz: b5c2c603ff3758918f048cd8acb874dc846449c1362117a40cc174b584dbe4c8870da187dd65115e78556c9810181cb141889928a41ac58f3d9d43ef40900605
6
+ metadata.gz: 4a2d8b51df88692d01fde4c76f053bd56738615cdbb28bb8ceb3f434ce21713287a70fa1f48772a2259889cc8a8720c01b7792d84f273fdfb51f2893768889dc
7
+ data.tar.gz: 1deaf1cb0cec96a2d9b5d3af6a9a28f7d0060638c01195a5f009b1a1494670e7338d7b318694ed5140ffa85d7667c4b1340e95f83de52e6e83871fd3cb507db7
@@ -16,4 +16,11 @@ module LatoSpaces::Groupable
16
16
 
17
17
  true
18
18
  end
19
+
20
+ def session_group_destroy
21
+ cookies.encrypted[:lato_session] = { value: Lato::Session.generate_session_per_user(@session.user_id), expires: Lato.config.session_lifetime.from_now }
22
+ @session = Lato::Session.new(cookies.encrypted[:lato_session])
23
+
24
+ true
25
+ end
19
26
  end
@@ -73,6 +73,9 @@ module LatoSpaces
73
73
 
74
74
  def destroy_action
75
75
  respond_to do |format|
76
+ # deselect group if is selected before destroy
77
+ session_group_destroy if @session.get(:spaces_group_id) == @group.id
78
+
76
79
  if @group.destroy
77
80
  redirect = lato_spaces.groups_path
78
81
  redirect = lato_spaces.root_path unless @session.user.lato_spaces_admin
@@ -1,3 +1,3 @@
1
1
  module LatoSpaces
2
- VERSION = "3.1.17"
2
+ VERSION = "3.1.18"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lato_spaces
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.17
4
+ version: 3.1.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gregorio Galante
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-03-29 00:00:00.000000000 Z
11
+ date: 2024-11-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -89,12 +89,12 @@ files:
89
89
  - lib/lato_spaces/engine.rb
90
90
  - lib/lato_spaces/version.rb
91
91
  - lib/tasks/lato_spaces_tasks.rake
92
- homepage: https://github.com/GAMS-Software/lato_spaces
92
+ homepage: https://github.com/Lato-org/lato_spaces
93
93
  licenses:
94
94
  - MIT
95
95
  metadata:
96
- homepage_uri: https://github.com/GAMS-Software/lato_spaces
97
- source_code_uri: https://github.com/GAMS-Software/lato_spaces
96
+ homepage_uri: https://github.com/Lato-org/lato_spaces
97
+ source_code_uri: https://github.com/Lato-org/lato_spaces
98
98
  post_install_message:
99
99
  rdoc_options: []
100
100
  require_paths:
@@ -110,7 +110,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
110
110
  - !ruby/object:Gem::Version
111
111
  version: '0'
112
112
  requirements: []
113
- rubygems_version: 3.5.6
113
+ rubygems_version: 3.4.1
114
114
  signing_key:
115
115
  specification_version: 4
116
116
  summary: Another engine for Lato projects