Skip to content

Commit

Permalink
Email for experienced group
Browse files Browse the repository at this point in the history
  • Loading branch information
rebkwok committed Jan 3, 2024
1 parent 22e4ca2 commit 5fa5435
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions studioadmin/views/users.py
Original file line number Diff line number Diff line change
Expand Up @@ -834,12 +834,12 @@ def toggle_permission(request, user_id, allowed_group_id):
log=f"User {user_to_change.username} added to allowed group {allowed_group} by "
f"admin user {request.user.username}"
)
if allowed_group.group.name == "Experienced":
if allowed_group.group.name.lower() == "experienced":
send_mail(
"Account upgraded: important information",
get_template('studioadmin/email/experienced_group_permission.txt').render(),
settings.DEFAULT_FROM_EMAIL,
[user_to_change],
[user_to_change.email],
html_message=get_template('studioadmin/email/experienced_group_permission.html').render(),
fail_silently=False
)
Expand Down

0 comments on commit 5fa5435

Please sign in to comment.