diff options
author | Jarka Košanová <jarka@gitlab.com> | 2019-02-13 11:50:24 +0100 |
---|---|---|
committer | Jarka Košanová <jarka@gitlab.com> | 2019-02-20 10:17:49 +0100 |
commit | 38f3c2e18684f94f75ab52e5039203e8321ed7d7 (patch) | |
tree | 6d24ff69dc9f88a24aa76d98c5ef4f43b98e9280 /app/mailers | |
parent | 66b20a66f4b25a69ff3f59da855ac2cb38c8bca9 (diff) | |
download | gitlab-ce-38f3c2e18684f94f75ab52e5039203e8321ed7d7.tar.gz |
Remove link after issue move when no permissions
Don't show new issue link after move
when a user does not have permissions
to display the new issue
Diffstat (limited to 'app/mailers')
-rw-r--r-- | app/mailers/emails/issues.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/mailers/emails/issues.rb b/app/mailers/emails/issues.rb index 654ae211310..d2e334fb856 100644 --- a/app/mailers/emails/issues.rb +++ b/app/mailers/emails/issues.rb @@ -74,6 +74,7 @@ module Emails @new_issue = new_issue @new_project = new_issue.project + @can_access_project = recipient.can?(:read_project, @new_project) mail_answer_thread(issue, issue_thread_options(updated_by_user.id, recipient.id, reason)) end |