labimotion 1.4.0.rc7 → 1.4.0.rc8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/labimotion/apis/generic_element_api.rb +1 -2
- data/lib/labimotion/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 541eee2d6e4830fdc77a3efff358ab44e6a63b14fc87e185172cabe04d9dd8d2
|
4
|
+
data.tar.gz: a490a78a05b5cb09caec29d04cf740051d5fe26eec3ae1f6c7e1dbfc9ef8684a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5b31e2e6fac21410b0ec1e59ca38510363cd956cceb868fa85beb9c98ec59e46bb44f087664b30170c46b6832f281cb5a848534a22654f19e5258c8347c41788
|
7
|
+
data.tar.gz: 723af7ff7fb6fac0a99115693eaca283b497e42f549ba1c6305ee02f684d592c3cdf6312cfab2ce3b2e2ca9ae3265e31b42b7165e57401b253def7f5ed5dd21e
|
@@ -377,8 +377,7 @@ module Labimotion
|
|
377
377
|
end
|
378
378
|
route_param :id do
|
379
379
|
before do
|
380
|
-
|
381
|
-
@element_policy = ElementPolicy.new(current_user, Element.find(params[:id]))
|
380
|
+
@element_policy = ElementPolicy.new(current_user, Labimotion::Element.find(params[:id]))
|
382
381
|
error!('401 Unauthorized', 401) unless current_user.matrix_check_by_name('genericElement') && @element_policy.read?
|
383
382
|
rescue ActiveRecord::RecordNotFound
|
384
383
|
error!('404 Not Found', 404)
|
data/lib/labimotion/version.rb
CHANGED