diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-07-03 15:08:53 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-07-03 15:08:53 +0300 |
commit | b922b2f47a06597d5cbd77bf9b7f4c5fb3dbd8ed (patch) | |
tree | 5f86b7f535d3a6881d1d653238d623defa70e26e /lib/gitlab/user_access.rb | |
parent | 1c75400c24137f603678d0ee3d497b0c9280e7f7 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/gitlab/user_access.rb')
-rw-r--r-- | lib/gitlab/user_access.rb | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/lib/gitlab/user_access.rb b/lib/gitlab/user_access.rb index 5e0a4faeba8..1551548d9b4 100644 --- a/lib/gitlab/user_access.rb +++ b/lib/gitlab/user_access.rb @@ -92,12 +92,6 @@ module Gitlab end end - def can_read_project? - return false unless can_access_git? - - user.can?(:read_project, project) - end - private def permission_cache |