diff options
Diffstat (limited to 'lib/api/entities/namespace_basic.rb')
-rw-r--r-- | lib/api/entities/namespace_basic.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/entities/namespace_basic.rb b/lib/api/entities/namespace_basic.rb index f968a074bd2..2b9dd0b5f4d 100644 --- a/lib/api/entities/namespace_basic.rb +++ b/lib/api/entities/namespace_basic.rb @@ -6,7 +6,7 @@ module API expose :id, :name, :path, :kind, :full_path, :parent_id, :avatar_url expose :web_url do |namespace| - if namespace.user? + if namespace.user_namespace? Gitlab::Routing.url_helpers.user_url(namespace.owner) else namespace.web_url |