summaryrefslogtreecommitdiff
path: root/app/models/merge_request.rb
diff options
context:
space:
mode:
authorMark Chao <mchao@gitlab.com>2018-06-08 13:12:51 +0000
committerYorick Peterse <yorickpeterse@gmail.com>2018-06-08 13:12:51 +0000
commit68cb1c2651fde0ae009beed10f81a74172ceeab1 (patch)
treef8a191e5916b38d00abc747d35cd3e77dd640296 /app/models/merge_request.rb
parente1f9f3c6ac8a71c8196c8eae7d4c573899466cdf (diff)
downloadgitlab-ce-68cb1c2651fde0ae009beed10f81a74172ceeab1.tar.gz
Revert rename allow collaboration column
Diffstat (limited to 'app/models/merge_request.rb')
-rw-r--r--app/models/merge_request.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/app/models/merge_request.rb b/app/models/merge_request.rb
index 535a2c362f2..324065c1162 100644
--- a/app/models/merge_request.rb
+++ b/app/models/merge_request.rb
@@ -1125,8 +1125,11 @@ class MergeRequest < ActiveRecord::Base
project.merge_requests.merged.where(author_id: author_id).empty?
end
+ # TODO: remove once production database rename completes
+ alias_attribute :allow_collaboration, :allow_maintainer_to_push
+
def allow_collaboration
- collaborative_push_possible? && super
+ collaborative_push_possible? && allow_maintainer_to_push
end
alias_method :allow_collaboration?, :allow_collaboration