Skip to content
Snippets Groups Projects

Make GitLab pages support access control

Merged Tuomo Ala-Vannesluoma requested to merge tuomoa/gitlab-foss:auth into master
Compare and Show latest version
3 files
+ 9
9
Compare changes
  • Side-by-side
  • Inline
Files
3
@@ -72,13 +72,13 @@
project.project_feature.update(pages_access_level: pages_access_level)
end
it "correct return value" do
if !with_user.nil?
get api("/projects/#{project.id}/pages_access", public_send(with_user))
user = public_send(with_user)
get api("/projects/#{project.id}/pages_access", user)
else
get api("/projects/#{project.id}/pages_access")
end
expect(response).to have_gitlab_http_status(expected_result)
end
end
Loading