diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-05-27 19:51:41 +0400 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-05-27 19:51:41 +0400 |
commit | affd376f7a36df4a80369bc1c7c8557dd4822b7d (patch) | |
tree | a8ce46d30aa234e2b3e36d43f5623e3ab03970d6 /app/models | |
parent | d25bc257666c9949b6f62414368c09e83df9d6f1 (diff) |
Dont show remove source branch ckecbox/button if you dont have such
permissions for MR page
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/merge_request.rb | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/app/models/merge_request.rb b/app/models/merge_request.rb index 061537132b3..b7c4a2a923c 100644 --- a/app/models/merge_request.rb +++ b/app/models/merge_request.rb @@ -212,10 +212,6 @@ class MergeRequest < ActiveRecord::Base target_project != source_project end - def disallow_source_branch_removal? - source_project.root_ref?(source_branch) || source_project.protected_branches.include?(source_branch) - end - def project target_project end |