diff options
author | James Edwards-Jones <jedwardsjones@gitlab.com> | 2017-04-04 02:05:42 +0100 |
---|---|---|
committer | James Edwards-Jones <jedwardsjones@gitlab.com> | 2017-04-04 02:05:42 +0100 |
commit | 1e15444ae6dda02744db42d08c817252953c7b1f (patch) | |
tree | fbc15aed4220716b8844546601320c32624a4e7e /lib/gitlab/checks/change_access.rb | |
parent | 90c8bb8301b4bc3268a5fa4ea8bddafbc29d6871 (diff) | |
download | gitlab-ce-1e15444ae6dda02744db42d08c817252953c7b1f.tar.gz |
Cleanup & tests for UserAccess#can_create_tag?
Diffstat (limited to 'lib/gitlab/checks/change_access.rb')
-rw-r--r-- | lib/gitlab/checks/change_access.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/checks/change_access.rb b/lib/gitlab/checks/change_access.rb index d0bbd713710..0d96c4d41d7 100644 --- a/lib/gitlab/checks/change_access.rb +++ b/lib/gitlab/checks/change_access.rb @@ -79,7 +79,7 @@ module Gitlab return "Protected tags cannot be deleted." end - unless user_access.can_push_tag?(@tag_name) + unless user_access.can_create_tag?(@tag_name) return "You are not allowed to create this tag as it is protected." end end |