diff options
author | Tiago Botelho <tiagonbotelho@hotmail.com> | 2017-07-25 18:15:45 +0100 |
---|---|---|
committer | Tiago Botelho <tiagonbotelho@hotmail.com> | 2017-07-25 18:29:33 +0100 |
commit | 250dbecd28473ce256e46f7233c14acb8c02a29d (patch) | |
tree | 5fea5ea2802a0b2bf9c13a68e99613858972756f /app | |
parent | ea6dfcad9fdb2c673c1074c6d99ff1cca42d680a (diff) | |
download | gitlab-ce-250dbecd28473ce256e46f7233c14acb8c02a29d.tar.gz |
Pending delete projects should not show in deploy keys35338-deploy-keys-should-not-show-pending-delete-projects
Diffstat (limited to 'app')
-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 |