mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-24 00:07:02 -04:00
Merge pull request #2556 from alphagov/one_off_bug_bug
Correct argument name to mobile_number on is_current_user_the_recipient
This commit is contained in:
@@ -805,8 +805,8 @@ def get_send_test_page_title(template_type, help_argument, entering_recipient, n
|
|||||||
def is_current_user_the_recipient():
|
def is_current_user_the_recipient():
|
||||||
if 'recipient' not in session:
|
if 'recipient' not in session:
|
||||||
return False
|
return False
|
||||||
if hasattr(current_user, 'phone_number'):
|
if hasattr(current_user, 'mobile_number'):
|
||||||
return session['recipient'] in {current_user.email_address, current_user.phone_number}
|
return session['recipient'] in {current_user.email_address, current_user.mobile_number}
|
||||||
return session['recipient'] == current_user.email_address
|
return session['recipient'] == current_user.email_address
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user