Commit 3e40f2fc authored by Kamil Trzcinski's avatar Kamil Trzcinski

Improve shared_runners_enabled? method

parent 43f5c349
...@@ -173,7 +173,8 @@ class Namespace < ActiveRecord::Base ...@@ -173,7 +173,8 @@ class Namespace < ActiveRecord::Base
end end
def shared_runners_enabled? def shared_runners_enabled?
current_application_settings.shared_runners_enabled? projects.where(shared_runners_enabled: true).any? ||
current_application_settings.shared_runners_enabled?
end end
def shared_runners_minutes_limit def shared_runners_minutes_limit
......
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