diff options
author | Lin Jen-Shin <godfat@godfat.org> | 2017-07-18 21:56:28 +0800 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2017-07-18 21:56:28 +0800 |
commit | 679789ee93b0e5db3863bfcd539e20074c140984 (patch) | |
tree | aa998ee09422203ffe40e4076765636bb852f41d /lib/gitlab/user_access.rb | |
parent | c86e74b284826e2f53bbcba763edd113a7022ffc (diff) | |
download | gitlab-ce-679789ee93b0e5db3863bfcd539e20074c140984.tar.gz |
Rename can_push_or_merge_to_branch? to can_update_branch?
Also make sure pipeline would also check against tag as well
Diffstat (limited to 'lib/gitlab/user_access.rb')
-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 c63b98500ee..25698bb8e99 100644 --- a/lib/gitlab/user_access.rb +++ b/lib/gitlab/user_access.rb @@ -54,7 +54,7 @@ module Gitlab end end - def can_push_or_merge_to_branch?(ref) + def can_update_branch?(ref) can_push_to_branch?(ref) || can_merge_to_branch?(ref) end |