Added subject scope to build policy

parent 27e788a2
......@@ -18,7 +18,7 @@ module Ci
@subject.project.branch_allows_collaboration?(@user, @subject.ref)
end
condition(:terminal) do
condition(:terminal, scope: :subject) do
@subject.has_terminal?
end
......
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