Commit 0d34cf28 authored by Bob Van Landuyt's avatar Bob Van Landuyt

Merge branch 'ajk-user-access-can-read-project' into 'master'

Remove unused method UserAccess#can_read_project?

See merge request gitlab-org/gitlab!35950
parents e8c502a7 9ed41ac4
...@@ -92,12 +92,6 @@ module Gitlab ...@@ -92,12 +92,6 @@ module Gitlab
end end
end end
def can_read_project?
return false unless can_access_git?
user.can?(:read_project, project)
end
private private
def permission_cache def permission_cache
......
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