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 +4 -4
- data/app/controllers/concerns/auth_managment.rb +1 -1
- data/lib/tramway/user/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2155694d5d266fb93281a65262ef33ccf706589440cad4798f3a8eb4a70351fc
|
4
|
+
data.tar.gz: d7e04aa995f2f9a34413aabc294731a93aaca105dd72ec6e72924177c3b36ea0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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
|
data/lib/tramway/user/version.rb
CHANGED