Commit e80c79e3 authored by Kamil Trzcinski's avatar Kamil Trzcinski

Fix build errors

parent 8670411a
......@@ -57,7 +57,7 @@ class Ability
]
if project.allow_guest_to_access_builds?
rules += :read_build
rules << :read_build
end
rules - project_disabled_features_rules(project)
......@@ -115,7 +115,7 @@ class Ability
rules.push(*project_guest_rules)
if project.allow_guest_to_access_builds?
rules += :read_build
rules << :read_build
end
end
......@@ -123,7 +123,7 @@ class Ability
rules.push(*public_project_rules)
if project.allow_guest_to_access_builds?
rules += :read_build
rules << :read_build
end
end
......
......@@ -130,6 +130,7 @@
%strong git fetch
%br
%span.descr Faster
.form-group
= f.label :build_timeout_in_minutes, 'Timeout', class: 'control-label'
.col-sm-10
......@@ -157,12 +158,15 @@
%li
phpunit --coverage-text --colors=never (PHP) -
%code ^\s*Lines:\s*\d+.\d+\%
.form-group
.col-sm-offset-2.col-sm-10
.checkbox
= f.label :allow_guest_to_access_builds do
= f.check_box :allow_guest_to_access_builds
Allow guest to access builds (including build logs and artifacts)
%strong Guests can see builds
.help-block Allow guests and anonymous users to access builds including build trace and artifacts
%fieldset.features
%legend
Advanced settings
......
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