Commit 56750e4c authored by Oswaldo Ferreira's avatar Oswaldo Ferreira

Separate EE-only Namespace API exposures with a comment

parent b59c7e2e
......@@ -494,8 +494,11 @@ module API
end
class Namespace < Grape::Entity
expose :id, :name, :path, :kind, :full_path
# EE-only
expose :shared_runners_minutes_limit
expose :plan, if: lambda { |_, options| options[:current_user] && options[:current_user].admin? }
expose :id, :name, :path, :kind, :full_path, :shared_runners_minutes_limit
end
class MemberAccess < Grape::Entity
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment