diff options
Diffstat (limited to 'app/serializers')
-rw-r--r-- | app/serializers/container_repository_entity.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/serializers/container_repository_entity.rb b/app/serializers/container_repository_entity.rb index cc746698a05..db9cf1c7835 100644 --- a/app/serializers/container_repository_entity.rb +++ b/app/serializers/container_repository_entity.rb @@ -18,7 +18,7 @@ class ContainerRepositoryEntity < Grape::Entity alias_method :repository, :object def project - request.project + request.respond_to?(:project) ? request.project : object.project end def can_destroy? |