Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhttp://jneen.net/ <jneen@jneen.net>2017-03-01 00:37:35 +0300
committerhttp://jneen.net/ <jneen@jneen.net>2017-03-09 22:49:52 +0300
commit145f6fd0b9bb2428ee9f5445efe7cb0b91ca8712 (patch)
tree6be26e84f2cfd8894f54ce7a3a134f05da1f83f3 /lib/gitlab/user_access.rb
parentdfe41c1556a5e31480a230e13033dd523ef51ba3 (diff)
protect git access through the policy infra
Diffstat (limited to 'lib/gitlab/user_access.rb')
-rw-r--r--lib/gitlab/user_access.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/user_access.rb b/lib/gitlab/user_access.rb
index 6ce9b229294..3078b134bb3 100644
--- a/lib/gitlab/user_access.rb
+++ b/lib/gitlab/user_access.rb
@@ -63,7 +63,7 @@ module Gitlab
private
def no_user_or_blocked?
- user.nil? || user.blocked?
+ user.nil? || !user.can?(:access_git)
end
end
end