diff options
author | Tiago Botelho <tiagonbotelho@hotmail.com> | 2017-07-25 20:15:45 +0300 |
---|---|---|
committer | Tiago Botelho <tiagonbotelho@hotmail.com> | 2017-07-25 20:29:33 +0300 |
commit | 250dbecd28473ce256e46f7233c14acb8c02a29d (patch) | |
tree | 5fea5ea2802a0b2bf9c13a68e99613858972756f /app/serializers/deploy_key_entity.rb | |
parent | ea6dfcad9fdb2c673c1074c6d99ff1cca42d680a (diff) |
Pending delete projects should not show in deploy keys
Diffstat (limited to 'app/serializers/deploy_key_entity.rb')
-rw-r--r-- | app/serializers/deploy_key_entity.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/serializers/deploy_key_entity.rb b/app/serializers/deploy_key_entity.rb index 068013c8829..c75431a79ae 100644 --- a/app/serializers/deploy_key_entity.rb +++ b/app/serializers/deploy_key_entity.rb @@ -9,7 +9,7 @@ class DeployKeyEntity < Grape::Entity expose :created_at expose :updated_at expose :projects, using: ProjectEntity do |deploy_key| - deploy_key.projects.select { |project| options[:user].can?(:read_project, project) } + deploy_key.projects.without_deleted.select { |project| options[:user].can?(:read_project, project) } end expose :can_edit |