thecore_ui_rails_admin 2.3.3 → 2.3.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: db2d96f8f1d2219dc6430071c22a8689e6976fabddf950e8272feb449de22c80
4
- data.tar.gz: c7eb8894672f1fd8644dccf82506959a2fa6c9b66c8e42e4b1a943716c4626fd
3
+ metadata.gz: 9edc7811d34bf51324c38827aac6564655f8d909e1cbc631f7c80cbe605037e2
4
+ data.tar.gz: c81c83877a3952e110954028ac995fa65ac8cb8a520491b42ec17ffd2122cd68
5
5
  SHA512:
6
- metadata.gz: a3912353c3cd7d2c7a3c4dbd5c0078cc33e50bc00d03edd857624a17f4a4145e26b55afc061326f736607a59fe6e08e98e0405a551faf80b2362b31627595bb5
7
- data.tar.gz: 5b912555b9e6b0011d905e6eec13d9b91986214dbcff68cdc17bc78d5778b91a5a45eac39b4e236e637cbe528d827cc860e65fc87e68585f43faf8135dece98a
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
- 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']}")
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.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-06-29 00:00:00.000000000 Z
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