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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ca069ac683742459fe2a713c81b957d18dddceb0ac29e418a357c7752632c305
|
4
|
+
data.tar.gz: 92578aa2ebf866851e83533a512bcc5ed0e3e0c7f46f6decbe9ddab51fd16bff
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/lib/lato_spaces/version.rb
CHANGED
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.
|
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-
|
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/
|
92
|
+
homepage: https://github.com/Lato-org/lato_spaces
|
93
93
|
licenses:
|
94
94
|
- MIT
|
95
95
|
metadata:
|
96
|
-
homepage_uri: https://github.com/
|
97
|
-
source_code_uri: https://github.com/
|
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.
|
113
|
+
rubygems_version: 3.4.1
|
114
114
|
signing_key:
|
115
115
|
specification_version: 4
|
116
116
|
summary: Another engine for Lato projects
|