tramway-user 1.0.2.1 → 1.0.2.2

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: 8487d538621fb43abe2d3b833eb4150b89eea32ffae6be563aac1e82b50f400b
4
- data.tar.gz: c81f478c6839c6b9478b40dc42720514e8e40f14c19c3dde8bb53bb541de47a9
3
+ metadata.gz: 2155694d5d266fb93281a65262ef33ccf706589440cad4798f3a8eb4a70351fc
4
+ data.tar.gz: d7e04aa995f2f9a34413aabc294731a93aaca105dd72ec6e72924177c3b36ea0
5
5
  SHA512:
6
- metadata.gz: db53258f73f04f8872f79be66cd92e6d0e83083f341ac9f65f65fbcadd646818da4e47b8a76b9336c8f8e9d23578649d40e07121b1441f809310bc85c79e09d6
7
- data.tar.gz: 2f3f2ff234f3766eaf5c037bd429caa0486747ffbe087b19de52ffc029ace9586463490b3a5c13b5b20a8110b53cdfa8e401a7690b8af8bf5c4ed36ff43ec716
6
+ metadata.gz: 3e44cafdd288a8dd0454a2b0acf2b33df25d122bc0e9e6f3140703a1a1017fddb2cd016d3081eae2f219778819f7339cf5b5d386c2043454afcea574ec48c3d6
7
+ data.tar.gz: 8ff7d982773f4696bae5281558668931f40977b5a19b28d3c36bc26e58f328512d99e444d5feb6cb66b4ad2f3d089f71294c6231900ed58f85bc616f69363dcd
@@ -17,7 +17,7 @@ module AuthManagment
17
17
 
18
18
  def authenticate_admin!
19
19
  if signed_in?
20
- redirect_to '/' unless current_user.admin?
20
+ redirect_to ::Tramway::User.root_path if !current_user.admin? && request.env['PATH_INFO'] != ::Tramway::User.root_path
21
21
  else
22
22
  redirect_to '/users/session/new'
23
23
  end
@@ -1,5 +1,5 @@
1
1
  module Tramway
2
2
  module User
3
- VERSION = '1.0.2.1'
3
+ VERSION = '1.0.2.2'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tramway-user
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2.1
4
+ version: 1.0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pavel Kalashnikov