logical_authz 0.1.6 → 0.1.7
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/logical_authz/application.rb +4 -1
- metadata +5 -5
@@ -50,7 +50,10 @@ module LogicalAuthz
|
|
50
50
|
if logical_authz_record[:result]
|
51
51
|
return true
|
52
52
|
else
|
53
|
-
request.session[:
|
53
|
+
request.session[:logical_authz] ||= {}
|
54
|
+
request.session[:logical_authz][:unauthzd_path] = request.path
|
55
|
+
flash[:logical_authz_last_denial] = flash[:logical_authz_record]
|
56
|
+
|
54
57
|
redirect_to_lobby("Your account is not authorized to perform this action.")
|
55
58
|
return false
|
56
59
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: logical_authz
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 21
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 7
|
10
|
+
version: 0.1.7
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Judson Lester
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-
|
18
|
+
date: 2010-12-02 00:00:00 -08:00
|
19
19
|
default_executable:
|
20
20
|
dependencies: []
|
21
21
|
|
@@ -95,7 +95,7 @@ rdoc_options:
|
|
95
95
|
- --main
|
96
96
|
- doc/README
|
97
97
|
- --title
|
98
|
-
- logical_authz-0.1.
|
98
|
+
- logical_authz-0.1.7 RDoc
|
99
99
|
require_paths:
|
100
100
|
- lib
|
101
101
|
required_ruby_version: !ruby/object:Gem::Requirement
|