summaryrefslogtreecommitdiff
path: root/lib/gitlab/user_access.rb
diff options
context:
space:
mode:
authorJames Edwards-Jones <jedwardsjones@gitlab.com>2017-04-04 03:50:15 +0100
committerJames Edwards-Jones <jedwardsjones@gitlab.com>2017-04-04 03:50:15 +0100
commitd85471ac1a4574053b057dd7cc02858d591a8ffd (patch)
tree4c49fc7670606badfe78e1cc318ee74802de2f32 /lib/gitlab/user_access.rb
parent07d7d8e65905a39164b63f55eccdcea8f10f5d14 (diff)
downloadgitlab-ce-d85471ac1a4574053b057dd7cc02858d591a8ffd.tar.gz
Fixed UserAccess#can_create_tag? after create_access_levels rename
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 6af5de4dc08..54728e5ff0e 100644
--- a/lib/gitlab/user_access.rb
+++ b/lib/gitlab/user_access.rb
@@ -32,7 +32,7 @@ module Gitlab
return false unless can_access_git?
if ProtectedTag.protected?(project, ref)
- project.protected_tags.protected_ref_accessible_to?(ref, user)
+ project.protected_tags.protected_ref_accessible_to?(ref, user, action: :create)
else
user.can?(:push_code, project)
end