bowtie-io 1.0.11 → 1.0.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bowtie/middleware/policy_check.rb +5 -5
- data/lib/bowtie/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 39544527d815f0c0032864468dd6412ea1826501
|
4
|
+
data.tar.gz: b79057a6d1e46b5f0a4b5c0a18777aefb34cfbb0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f294d9ec18aa3d6c05b71059fc66d61a07dbfd81e8e72b3ed2126b3e55b7f7fe30bea44e066a59c9e52f49ffe87ca9013e82aa520e28d63a8eef2de3f535f11e
|
7
|
+
data.tar.gz: c5fbce85a957f05bc55f672ea76fe9d78b27604e6c1b1ba2f5173bced7b5ab3bd94e1e1d54f8ad12c8d7d4ac269aa4b97f073917610f617544ffb6ecf3b0334e
|
@@ -215,16 +215,16 @@ module Bowtie::Middleware
|
|
215
215
|
true
|
216
216
|
else
|
217
217
|
profile_restrictions.each do |scope,values|
|
218
|
-
|
219
|
-
return false if
|
218
|
+
profile_data = user_profile(rack_request, scope)
|
219
|
+
return false if profile_data.nil?
|
220
220
|
|
221
221
|
values.each do |key, value|
|
222
222
|
if value == true
|
223
|
-
return false if !
|
223
|
+
return false if !profile_data[key]
|
224
224
|
elsif value == false
|
225
|
-
return false if !!
|
225
|
+
return false if !!profile_data[key]
|
226
226
|
else
|
227
|
-
return false if
|
227
|
+
return false if profile_data[key] != value
|
228
228
|
end
|
229
229
|
end
|
230
230
|
end
|
data/lib/bowtie/version.rb
CHANGED