diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-05-28 03:10:42 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-05-28 03:10:42 +0300 |
commit | 50135e6e0460e9276588670e3235a95f19a1660d (patch) | |
tree | 1a1bc3919a4fc8edba61c660081331b493c9cb9d /app | |
parent | 95d309bfb847dbafbfb3784d1933a3eb269dde24 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app')
-rw-r--r-- | app/models/project.rb | 4 |
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 |