diff options
author | Lin Jen-Shin <godfat@godfat.org> | 2017-07-18 16:56:28 +0300 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2017-07-18 16:56:28 +0300 |
commit | 679789ee93b0e5db3863bfcd539e20074c140984 (patch) | |
tree | aa998ee09422203ffe40e4076765636bb852f41d /app/policies/ci/build_policy.rb | |
parent | c86e74b284826e2f53bbcba763edd113a7022ffc (diff) |
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 'app/policies/ci/build_policy.rb')
-rw-r--r-- | app/policies/ci/build_policy.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/policies/ci/build_policy.rb b/app/policies/ci/build_policy.rb index 00adb51e7de..00f18d0155b 100644 --- a/app/policies/ci/build_policy.rb +++ b/app/policies/ci/build_policy.rb @@ -6,7 +6,7 @@ module Ci if @subject.tag? !access.can_create_tag?(@subject.ref) else - !access.can_push_or_merge_to_branch?(@subject.ref) + !access.can_update_branch?(@subject.ref) end end |