fixes #2082 proper link in mail (#2083)

* fixes #2082 proper link in mail

only send the promoted user a link to the admin page if their role 
allows them to.

* addressed review

Co-authored-by: Ahmad Farhat <ahmad.af.farhat@gmail.com>
This commit is contained in:
Toni Förster
2020-09-15 22:08:32 +02:00
committed by GitHub
parent ca94ac46ba
commit a27884733d
3 changed files with 7 additions and 3 deletions

View File

@ -23,4 +23,4 @@
<%= t('mailer.user.promoted.more-info', url: @url) %>
<%= @admin_url %>
<%= @admin_role ? @admin_url : @url %>