Pass current_user when rendering Markdown in email
When rendering Markdown in notification emails, we pass in the recipient as current_user in the rendering context so that private references visible to that user are rendered. Without this change, only public references are rendered. This also passes the issuable_reference_expansion_enabled option so that it is rendered similar to how it is in the web UI. Changelog: fixed
显示
- app/mailers/emails/issues.rb 14 个添加, 14 个删除app/mailers/emails/issues.rb
- app/mailers/emails/merge_requests.rb 21 个添加, 21 个删除app/mailers/emails/merge_requests.rb
- app/mailers/emails/notes.rb 8 个添加, 7 个删除app/mailers/emails/notes.rb
- app/mailers/emails/releases.rb 2 个添加, 3 个删除app/mailers/emails/releases.rb
- app/views/notify/_note_email.html.haml 1 个添加, 1 个删除app/views/notify/_note_email.html.haml
- app/views/notify/issue_due_email.html.haml 1 个添加, 1 个删除app/views/notify/issue_due_email.html.haml
- app/views/notify/new_issue_email.html.haml 1 个添加, 1 个删除app/views/notify/new_issue_email.html.haml
- app/views/notify/new_merge_request_email.html.haml 1 个添加, 1 个删除app/views/notify/new_merge_request_email.html.haml
- app/views/notify/new_release_email.html.haml 1 个添加, 1 个删除app/views/notify/new_release_email.html.haml
- app/views/notify/service_desk_new_note_email.html.haml 1 个添加, 1 个删除app/views/notify/service_desk_new_note_email.html.haml
- ee/app/mailers/ee/emails/issues.rb 2 个添加, 2 个删除ee/app/mailers/ee/emails/issues.rb
- ee/app/mailers/ee/emails/merge_requests.rb 3 个添加, 3 个删除ee/app/mailers/ee/emails/merge_requests.rb
- ee/app/mailers/ee/emails/notes.rb 1 个添加, 1 个删除ee/app/mailers/ee/emails/notes.rb
- ee/app/mailers/emails/epics.rb 5 个添加, 4 个删除ee/app/mailers/emails/epics.rb
- ee/app/views/notify/add_merge_request_approver_email.html.haml 1 个添加, 1 个删除...p/views/notify/add_merge_request_approver_email.html.haml
- ee/app/views/notify/new_epic_email.html.haml 1 个添加, 1 个删除ee/app/views/notify/new_epic_email.html.haml
- spec/mailers/notify_spec.rb 22 个添加, 0 个删除spec/mailers/notify_spec.rb
加载中
想要评论请 注册 或 登录