diff options
| author | Robert | 2017-09-14 16:06:53 +0200 |
|---|---|---|
| committer | Robert | 2017-09-14 16:06:53 +0200 |
| commit | 480ff1d18eac5e1eef38df532d7dc671414ecc5e (patch) | |
| tree | 6e93bc2ce12fcb5ee85e7f25973971b59ad1bef8 /app | |
| parent | d79acfbd3e558a417e7abcddbca0e4baf32730cb (diff) | |
| download | chouette-core-4442-api_keys-permissions-spex.tar.bz2 | |
Fixes: #4442@0.5h;4442-api_keys-permissions-spex
Diffstat (limited to 'app')
| -rw-r--r-- | app/policies/api_key_policy.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/policies/api_key_policy.rb b/app/policies/api_key_policy.rb index bc5c9e433..7b4c22e33 100644 --- a/app/policies/api_key_policy.rb +++ b/app/policies/api_key_policy.rb @@ -10,7 +10,7 @@ class ApiKeyPolicy < ApplicationPolicy end def create? - user.has_permission?('api_keys.create') + organisation_match? && user.has_permission?('api_keys.create') end def update? |
