Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2021-05-28 03:10:42 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2021-05-28 03:10:42 +0300
commit50135e6e0460e9276588670e3235a95f19a1660d (patch)
tree1a1bc3919a4fc8edba61c660081331b493c9cb9d /app
parent95d309bfb847dbafbfb3784d1933a3eb269dde24 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app')
-rw-r--r--app/models/project.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/project.rb b/app/models/project.rb
index e0b0baeb4d5..26a7062581f 100644
--- a/app/models/project.rb
+++ b/app/models/project.rb
@@ -2606,6 +2606,10 @@ class Project < ApplicationRecord
ProjectStatistics.increment_statistic(self, statistic, delta)
end
+ def merge_requests_author_approval
+ !!read_attribute(:merge_requests_author_approval)
+ end
+
private
def set_container_registry_access_level