BigW Consortium Gitlab

Commit af0242b3 by Lin Jen-Shin

We removed User#has_access_to?

parent 8c1a01e0
......@@ -93,7 +93,9 @@ module ProjectsHelper
if deploy_key.has_access_to?(@project)
@project
else
deploy_key.projects.find(&current_user.method(:has_access_to?))
deploy_key.projects.find do |project|
can?(current_user, :read_project, project)
end
end
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