openstax_utilities 4.2.1 → 4.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/openstax/utilities/access_policy.rb +2 -1
- data/lib/openstax/utilities/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f9fb92dac4bdf0b0af70e27c154b2f8158c173cf
|
4
|
+
data.tar.gz: 07c66d517d316ea5a0154d1846386e9d68a29cae
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f00a13e0bc2210279982fe08aab75cd52ffe13e1644493ac023bfc06077bc2509c0ae54888d11037224fcf957d6f57e40bec50e3bbc87c517379bbb1d88a1bd0
|
7
|
+
data.tar.gz: d4e17b3a92029e87b64b5e60baa4227c19b0cc7e599f75c975e5113320a6725e9f562e8f5dcbaa899ea5eef3f829dfd78f8fb6a6904eea45307942542fb4beec
|
@@ -24,7 +24,8 @@ module OpenStax
|
|
24
24
|
end
|
25
25
|
|
26
26
|
def self.require_action_allowed!(action, requestor, resource)
|
27
|
-
|
27
|
+
msg = "\"#{requestor.inspect}\" is not allowed to perform \"#{action}\" on \"#{resource.inspect}\""
|
28
|
+
raise(SecurityTransgression, msg) unless action_allowed?(action, requestor, resource)
|
28
29
|
end
|
29
30
|
|
30
31
|
def self.action_allowed?(action, requestor, resource)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: openstax_utilities
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.2.
|
4
|
+
version: 4.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- JP Slavinsky
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-07-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|