diff options
Diffstat (limited to 'app/models/merge_request.rb')
-rw-r--r-- | app/models/merge_request.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/merge_request.rb b/app/models/merge_request.rb index 0decc7782ee..1ec76dbd39a 100644 --- a/app/models/merge_request.rb +++ b/app/models/merge_request.rb @@ -210,7 +210,7 @@ class MergeRequest < ActiveRecord::Base end def disallow_source_branch_removal? - (source_project.root_ref? source_branch) || for_fork? + source_project.root_ref?(source_branch) || source_project.protected_branches.include?(source_branch) end def project |