drillbit 2.1.0 → 2.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/lib/drillbit/authorizers/parameters/filtering.rb +7 -8
- data/lib/drillbit/version.rb +1 -1
- metadata +1 -1
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bca9c34aa017e24eee6166e02ddf7781a7f8e8c0
|
4
|
+
data.tar.gz: 9ce4529a2cde4d3fc81bcd17b7e21cd71ea5d5ff
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 95c93eb1ffa16512843587aacf7489b3816bc691a2bf829674b1a925c314f69e7a94e2d5719c29e686654a465ff72d05159a583c9d188f9397d629f8963dd13a
|
7
|
+
data.tar.gz: a0f658423619d88c6351cde8b22196d3d2a456cfa5f4221106bd904728d06638e97355b4435dbe4f0049b95e6942c3175eec76e0e22d023898aa5e312fb777d9
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
@@ -46,21 +46,20 @@ class Filtering < Authorizers::Parameters
|
|
46
46
|
end
|
47
47
|
end
|
48
48
|
|
49
|
-
# :reek:ControlParameter
|
50
49
|
# :reek:BooleanParameter
|
51
50
|
# :reek:DuplicateMethodCall
|
52
|
-
def
|
53
|
-
|
54
|
-
|
55
|
-
|
51
|
+
def override_filter_parameter(name:,
|
52
|
+
value:,
|
53
|
+
only_when_present: false,
|
54
|
+
override_if_admin: false)
|
55
|
+
|
56
|
+
add_filterable_parameter name
|
56
57
|
|
57
58
|
return true if !override_if_admin && token.admin?
|
58
59
|
|
59
60
|
params[:filter] ||= {}
|
60
61
|
|
61
|
-
if params[:filter][
|
62
|
-
params[:filter][owner_id_name] = owner_id_value
|
63
|
-
end
|
62
|
+
params[:filter][name] = value if params[:filter][name] || !only_when_present
|
64
63
|
end
|
65
64
|
end
|
66
65
|
end
|
data/lib/drillbit/version.rb
CHANGED
metadata
CHANGED
metadata.gz.sig
CHANGED
Binary file
|