thecore_ui_rails_admin 2.3.3 → 2.3.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/config/initializers/thecore_concern.rb +10 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9edc7811d34bf51324c38827aac6564655f8d909e1cbc631f7c80cbe605037e2
|
4
|
+
data.tar.gz: c81c83877a3952e110954028ac995fa65ac8cb8a520491b42ec17ffd2122cd68
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c29483d81c0db2340c94dead4297089c98108ecdf8ec4112cd4f2b0a044d9b6518e3dabbc3e847570b502fbc1ac7ad6b7fd508c89a98d29bf31c9300095d8b53
|
7
|
+
data.tar.gz: 1df9e7e5d4d32a07d73abe74c39233a713b639cf443e8d06a602603bb434bd451495d552541786d00578cd9580a3c4d71cad9a1365feab3add17f4ee3e787155
|
@@ -31,9 +31,17 @@ module ThecoreConcern
|
|
31
31
|
# Rails.logger.debug "ROOT ACTIONS: #{root_actions.inspect}"
|
32
32
|
# GETTING THE FIRST ACTION I CAN MANAGE
|
33
33
|
action = root_actions.collect(&:action_name).first
|
34
|
-
# Rails.logger.debug "FIRST ACTION: #{action}"
|
35
34
|
# REDIRECT TO THAT ACTION
|
36
|
-
|
35
|
+
if action
|
36
|
+
stored_location_for(resource) || rails_admin.send("#{action}_path").sub("#{ENV['RAILS_RELATIVE_URL_ROOT']}#{ENV['RAILS_RELATIVE_URL_ROOT']}", "#{ENV['RAILS_RELATIVE_URL_ROOT']}")
|
37
|
+
else
|
38
|
+
sign_out current_user
|
39
|
+
user_session = nil
|
40
|
+
current_user = nil
|
41
|
+
flash[:alert] = "Your user is not authorized to access any page."
|
42
|
+
flash[:notice] = nil
|
43
|
+
root_url
|
44
|
+
end
|
37
45
|
end
|
38
46
|
end
|
39
47
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: thecore_ui_rails_admin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.3.
|
4
|
+
version: 2.3.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gabriele Tassoni
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-07-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thecore_ui_commons
|