aptible-rails 0.4.6 → 0.4.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aptible/rails/controller.rb +8 -0
- data/lib/aptible/rails/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: c2866c2d27fd32ca043ef856e2e02057823e4a72
|
4
|
+
data.tar.gz: 9403d5011f3806e320023ae712f558c87a3ba299
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ecb902d3cc8f71e84bba46a313b52b7aa078e9d3474cd06b977f4575fdcdf921ceca6ecb4f7448760ff2da57cd2318e4572e53b204fcad24bf57aff127ab1d4b
|
7
|
+
data.tar.gz: 4057243120a3a045a424c2537dc961c5c27ea3cc014f8e5ce1497d304051bc23d7badbb319e19f06c44dfba5cb7643c9c7e6c7f8657fbeb2d7bc8aa5a3639363
|
@@ -45,6 +45,14 @@ module Aptible
|
|
45
45
|
redirect_to aptible_login_url unless service_token
|
46
46
|
end
|
47
47
|
|
48
|
+
# before_action :ensure_compliance_plan
|
49
|
+
def ensure_compliance_plan
|
50
|
+
unless current_organization &&
|
51
|
+
current_organization.can_manage_compliance?
|
52
|
+
redirect_to compliance_url
|
53
|
+
end
|
54
|
+
end
|
55
|
+
|
48
56
|
# before_action :ensure_auth_key
|
49
57
|
def ensure_auth_key
|
50
58
|
return if Fridge.configuration.public_key
|