mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-07-29 19:48:31 -04:00
Revert if statement refactor, if set_inbound_sms is False it still resolves to True, because it is not a boolean but a string.
This commit is contained in:
@@ -270,7 +270,7 @@ def service_set_sms_sender(service_id):
|
||||
form = ServiceSmsSender()
|
||||
if form.validate_on_submit():
|
||||
set_inbound_sms = request.args.get('set_inbound_sms', False)
|
||||
if set_inbound_sms:
|
||||
if set_inbound_sms == 'True':
|
||||
permissions = current_service['permissions']
|
||||
if 'inbound_sms' in permissions:
|
||||
permissions.remove('inbound_sms')
|
||||
|
||||
Reference in New Issue
Block a user