lockdown 1.6.2 → 1.6.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/lockdown.rb +1 -1
- data/lib/lockdown/frameworks/rails/controller.rb +2 -1
- data/lockdown.gemspec +8 -8
- metadata +7 -7
data/lib/lockdown.rb
CHANGED
@@ -32,7 +32,8 @@ module Lockdown
|
|
32
32
|
|
33
33
|
def check_request_authorization
|
34
34
|
unless authorized?(path_from_hash(params))
|
35
|
-
|
35
|
+
parameters = respond_to?(:filter_parameters) ? filter_parameters(params) : params.dup
|
36
|
+
raise SecurityError, "Authorization failed! \nparams: #{parameters.inspect}\nsession: #{session.inspect}"
|
36
37
|
end
|
37
38
|
end
|
38
39
|
|
data/lockdown.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{lockdown}
|
8
|
-
s.version = "1.6.
|
8
|
+
s.version = "1.6.3"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Andrew Stone"]
|
12
|
-
s.date = %q{
|
12
|
+
s.date = %q{2010-01-22}
|
13
13
|
s.description = %q{Restrict access to your controller actions. Supports basic model level restrictions as well}
|
14
14
|
s.email = %q{andy@stonean.com}
|
15
15
|
s.extra_rdoc_files = [
|
@@ -88,16 +88,16 @@ Gem::Specification.new do |s|
|
|
88
88
|
s.rubygems_version = %q{1.3.5}
|
89
89
|
s.summary = %q{Authorization system for Rails 2.x}
|
90
90
|
s.test_files = [
|
91
|
-
"spec/lockdown/
|
92
|
-
"spec/lockdown/
|
91
|
+
"spec/lockdown/rules_spec.rb",
|
92
|
+
"spec/lockdown/context_spec.rb",
|
93
|
+
"spec/lockdown/system_spec.rb",
|
94
|
+
"spec/lockdown/session_spec.rb",
|
95
|
+
"spec/lockdown/frameworks/rails_spec.rb",
|
93
96
|
"spec/lockdown/frameworks/rails/controller_spec.rb",
|
94
97
|
"spec/lockdown/frameworks/rails/view_spec.rb",
|
95
|
-
"spec/lockdown/frameworks/rails_spec.rb",
|
96
98
|
"spec/lockdown/permission_spec.rb",
|
99
|
+
"spec/lockdown/database_spec.rb",
|
97
100
|
"spec/lockdown/rspec_helper_spec.rb",
|
98
|
-
"spec/lockdown/rules_spec.rb",
|
99
|
-
"spec/lockdown/session_spec.rb",
|
100
|
-
"spec/lockdown/system_spec.rb",
|
101
101
|
"spec/lockdown_spec.rb",
|
102
102
|
"spec/spec_helper.rb"
|
103
103
|
]
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lockdown
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.6.
|
4
|
+
version: 1.6.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Stone
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date:
|
12
|
+
date: 2010-01-22 00:00:00 -05:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -124,15 +124,15 @@ signing_key:
|
|
124
124
|
specification_version: 3
|
125
125
|
summary: Authorization system for Rails 2.x
|
126
126
|
test_files:
|
127
|
+
- spec/lockdown/rules_spec.rb
|
127
128
|
- spec/lockdown/context_spec.rb
|
128
|
-
- spec/lockdown/
|
129
|
+
- spec/lockdown/system_spec.rb
|
130
|
+
- spec/lockdown/session_spec.rb
|
131
|
+
- spec/lockdown/frameworks/rails_spec.rb
|
129
132
|
- spec/lockdown/frameworks/rails/controller_spec.rb
|
130
133
|
- spec/lockdown/frameworks/rails/view_spec.rb
|
131
|
-
- spec/lockdown/frameworks/rails_spec.rb
|
132
134
|
- spec/lockdown/permission_spec.rb
|
135
|
+
- spec/lockdown/database_spec.rb
|
133
136
|
- spec/lockdown/rspec_helper_spec.rb
|
134
|
-
- spec/lockdown/rules_spec.rb
|
135
|
-
- spec/lockdown/session_spec.rb
|
136
|
-
- spec/lockdown/system_spec.rb
|
137
137
|
- spec/lockdown_spec.rb
|
138
138
|
- spec/spec_helper.rb
|