From 04fbc4f555634fff319012ba9c902b5ea335241b Mon Sep 17 00:00:00 2001 From: Luc Donnet Date: Thu, 14 Sep 2017 10:03:07 +0200 Subject: Fix api_key policies Refs #4442 --- app/controllers/api_keys_controller.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'app/controllers/api_keys_controller.rb') 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)) -- cgit v1.2.3