diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-12-01 06:13:34 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-12-01 06:13:34 +0300 |
commit | a3e0d4c59ff43ee406d2fee12a29339b95a0787d (patch) | |
tree | 22105026897baded7ae5fe2ea5384bdfe6febc69 /app/presenters/issue_presenter.rb | |
parent | 08775893a80e4024d9b30bd1a17caff7ecb274f9 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/presenters/issue_presenter.rb')
-rw-r--r-- | app/presenters/issue_presenter.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/app/presenters/issue_presenter.rb b/app/presenters/issue_presenter.rb index 9403dd0814b..f9bc8c1dfa6 100644 --- a/app/presenters/issue_presenter.rb +++ b/app/presenters/issue_presenter.rb @@ -12,12 +12,12 @@ class IssuePresenter < Gitlab::View::Presenter::Delegated issue.subscribed?(current_user, issue.project) end - def project_emails_disabled? - issue.project.emails_disabled? + def parent_emails_disabled? + issue.resource_parent.emails_disabled? end - def project_emails_enabled? - issue.project.emails_enabled? + def parent_emails_enabled? + issue.resource_parent.emails_enabled? end delegator_override :service_desk_reply_to |