BigW Consortium Gitlab

Commit d4be9674 by Kamil Trzcinski

Fix 500 when accessing private project when not logged in

parent 0aec0d53
......@@ -928,6 +928,3 @@ DEPENDENCIES
webmock (~> 1.21.0)
whenever (~> 0.8.4)
wikicloth (= 0.8.1)
BUNDLED WITH
1.10.6
......@@ -10,9 +10,7 @@ module Ci
def authenticate_public_page!
unless project.public
unless current_user
redirect_to(new_user_sessions_path) and return
end
authenticate_user!
return access_denied! unless can?(current_user, :read_project, gl_project)
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