Commit c1841246 authored by Avielle Wolfe's avatar Avielle Wolfe

Fix Namespace shared runners enabled check

This method is used to determine whether or not to show shared runners
information in the UI. Even though we now want to count minutes when
shared runners are disabled, I don't think we want to change how
anything appears in the UI since legitimate uses of shared runners won't
be effected by this change.
parent c9d305d3
......@@ -250,9 +250,9 @@ module EE
@ci_minutes_quota ||= ::Ci::Minutes::Quota.new(self)
end
# The same method name is used also at project and job level
# The same method name is used also at project level
def shared_runners_minutes_limit_enabled?
ci_minutes_quota.enabled?
any_project_with_shared_runners_enabled? && ci_minutes_quota.enabled?
end
def any_project_with_shared_runners_enabled?
......
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