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:
authorJames Edwards-Jones <jedwardsjones@gitlab.com>2017-04-04 04:05:42 +0300
committerJames Edwards-Jones <jedwardsjones@gitlab.com>2017-04-04 04:05:42 +0300
commit1e15444ae6dda02744db42d08c817252953c7b1f (patch)
treefbc15aed4220716b8844546601320c32624a4e7e /lib/gitlab/checks
parent90c8bb8301b4bc3268a5fa4ea8bddafbc29d6871 (diff)
Cleanup & tests for UserAccess#can_create_tag?
Diffstat (limited to 'lib/gitlab/checks')
-rw-r--r--lib/gitlab/checks/change_access.rb2
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