authorization-san 2.1.0 → 2.1.1
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.
- data/lib/authorization/block_access.rb +2 -1
- metadata +5 -5
|
@@ -71,7 +71,8 @@ module Authorization
|
|
|
71
71
|
end
|
|
72
72
|
|
|
73
73
|
def _access_allowed_with_rule?(rule, params, role, authenticated) #:nodoc:
|
|
74
|
-
|
|
74
|
+
return false if params[:action].nil?
|
|
75
|
+
action = params[:action].to_sym
|
|
75
76
|
directives = rule[:directives]
|
|
76
77
|
_matches_action?(directives, action) and
|
|
77
78
|
_matches_scope?(directives[:scope], params, authenticated) and
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: authorization-san
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 9
|
|
5
5
|
prerelease:
|
|
6
6
|
segments:
|
|
7
7
|
- 2
|
|
8
8
|
- 1
|
|
9
|
-
-
|
|
10
|
-
version: 2.1.
|
|
9
|
+
- 1
|
|
10
|
+
version: 2.1.1
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Manfred Stienstra
|
|
@@ -15,7 +15,7 @@ autorequire:
|
|
|
15
15
|
bindir: bin
|
|
16
16
|
cert_chain: []
|
|
17
17
|
|
|
18
|
-
date:
|
|
18
|
+
date: 2012-06-22 00:00:00 Z
|
|
19
19
|
dependencies: []
|
|
20
20
|
|
|
21
21
|
description: A plugin for authorization in a ReSTful application.
|
|
@@ -64,7 +64,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
64
64
|
requirements: []
|
|
65
65
|
|
|
66
66
|
rubyforge_project:
|
|
67
|
-
rubygems_version: 1.8.
|
|
67
|
+
rubygems_version: 1.8.18
|
|
68
68
|
signing_key:
|
|
69
69
|
specification_version: 3
|
|
70
70
|
summary: A plugin for authorization in a ReSTful application.
|