Merge pull request #1385 from alphagov/fix-ip-restrictions

Change to fix ip restrictions
This commit is contained in:
Rebecca Law
2017-11-10 12:16:15 +00:00
committed by GitHub

View File

@@ -124,7 +124,7 @@ def register_blueprint(application):
application.register_blueprint(sms_callback_blueprint) application.register_blueprint(sms_callback_blueprint)
# inbound sms # inbound sms
receive_notifications_blueprint.before_request(restrict_ip_sms) receive_notifications_blueprint.before_request(requires_no_auth)
application.register_blueprint(receive_notifications_blueprint) application.register_blueprint(receive_notifications_blueprint)
notifications_blueprint.before_request(requires_auth) notifications_blueprint.before_request(requires_auth)