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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3066c48b9a5b96899937c0c23988dd3b36c13521
4
- data.tar.gz: 2c8803908cbb25765394f860e45dd5be751e90c1
3
+ metadata.gz: c2866c2d27fd32ca043ef856e2e02057823e4a72
4
+ data.tar.gz: 9403d5011f3806e320023ae712f558c87a3ba299
5
5
  SHA512:
6
- metadata.gz: 02363f08cb34ae5ccf3dea12d1ed8d2c1a4c586b2ba4cc16d3019ce1aca8441067bb3aa092e8dab2a7ff77cf3ecdebf51803399b262c186698b739fc485a8d3a
7
- data.tar.gz: f657334321415dd36fb9e06d2d126b08c2e2c718b10062ad3dd11a2df9276fe631af07a7915a30c904f88c3e57bf85be8a0b1106157a6925df01e7f11451e69f
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
@@ -1,5 +1,5 @@
1
1
  module Aptible
2
2
  module Rails
3
- VERSION = '0.4.6'
3
+ VERSION = '0.4.7'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aptible-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.6
4
+ version: 0.4.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Frank Macreery