Skip to content
Snippets Groups Projects
Commit af0242b3 authored by Lin Jen-Shin's avatar Lin Jen-Shin
Browse files

We removed User#has_access_to?

parent 8c1a01e0
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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
 
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment