Commit d8ffaa31 authored by Oswaldo Ferreira's avatar Oswaldo Ferreira

Filter shared_runners_minutes_limit on Namespace entity (admin-only)

parent 56750e4c
......@@ -497,8 +497,8 @@ module API
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 :shared_runners_minutes_limit, if: lambda { |_, options| options[:current_user]&.admin? }
expose :plan, if: lambda { |_, options| options[:current_user]&.admin? }
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