diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2019-10-02 03:06:26 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2019-10-02 03:06:26 +0300 |
commit | 587794b4b8a6e919e77ee4abe8215fa291e6a91d (patch) | |
tree | 380d6578d1ab5902bb521071128bafd4f70472ef /app/presenters/issue_presenter.rb | |
parent | e0bd3a45d9dc6c74cac1a33ea8c03d6d8334249b (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 | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/presenters/issue_presenter.rb b/app/presenters/issue_presenter.rb index c9dc0dbf443..3d55b00ac3b 100644 --- a/app/presenters/issue_presenter.rb +++ b/app/presenters/issue_presenter.rb @@ -11,6 +11,10 @@ class IssuePresenter < Gitlab::View::Presenter::Delegated url_builder.issue_path(issue) end + def subscribed? + issue.subscribed?(current_user, issue.project) + end + private def url_builder |