Commit e80c79e3 authored by Kamil Trzcinski's avatar Kamil Trzcinski

Fix build errors

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