aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/api_keys_controller.rb
diff options
context:
space:
mode:
authorLuc Donnet2017-09-14 10:03:07 +0200
committerLuc Donnet2017-09-14 10:03:07 +0200
commit04fbc4f555634fff319012ba9c902b5ea335241b (patch)
tree980f6b198d0f4578bd8cee14c15d62ade60f02dc /app/controllers/api_keys_controller.rb
parent9be396d37877e420031c87821c99bba6fd9afdcd (diff)
downloadchouette-core-04fbc4f555634fff319012ba9c902b5ea335241b.tar.bz2
Fix api_key policies Refs #4442
Diffstat (limited to 'app/controllers/api_keys_controller.rb')
-rw-r--r--app/controllers/api_keys_controller.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/controllers/api_keys_controller.rb b/app/controllers/api_keys_controller.rb
index 03e5ef237..f8b96afdc 100644
--- a/app/controllers/api_keys_controller.rb
+++ b/app/controllers/api_keys_controller.rb
@@ -1,5 +1,6 @@
class ApiKeysController < BreadcrumbController
defaults resource_class: Api::V1::ApiKey
+ include PolicyChecker
def create
@api_key = Api::V1::ApiKey.new(api_key_params.merge(organisation: current_organisation))