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
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2019-10-02 03:06:26 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2019-10-02 03:06:26 +0300
commit587794b4b8a6e919e77ee4abe8215fa291e6a91d (patch)
tree380d6578d1ab5902bb521071128bafd4f70472ef /app/presenters/issue_presenter.rb
parente0bd3a45d9dc6c74cac1a33ea8c03d6d8334249b (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/presenters/issue_presenter.rb')
-rw-r--r--app/presenters/issue_presenter.rb4
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