diff options
author | James Edwards-Jones <jedwardsjones@gitlab.com> | 2017-04-04 03:50:15 +0100 |
---|---|---|
committer | James Edwards-Jones <jedwardsjones@gitlab.com> | 2017-04-04 03:50:15 +0100 |
commit | d85471ac1a4574053b057dd7cc02858d591a8ffd (patch) | |
tree | 4c49fc7670606badfe78e1cc318ee74802de2f32 /lib | |
parent | 07d7d8e65905a39164b63f55eccdcea8f10f5d14 (diff) | |
download | gitlab-ce-d85471ac1a4574053b057dd7cc02858d591a8ffd.tar.gz |
Fixed UserAccess#can_create_tag? after create_access_levels rename
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/user_access.rb | 2 |
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 |