Files
notifications-admin/app/main/views/inbound_number.py
Chris Hill-Scott b620b677d3 Have permissions decorators check user signed in
Rather than force us to write the decorators in a specific order let’s
just have one decorator call the other. This should make fewer lines of
code, and fewer annoying test failures. It also means that the same way
of raising a `401` (through the `current_app` method) is used
everywhere.
2019-07-03 09:54:35 +01:00

14 lines
407 B
Python

from flask import render_template
from app import inbound_number_client
from app.main import main
from app.utils import user_is_platform_admin
@main.route('/inbound-sms-admin', methods=['GET', 'POST'])
@user_is_platform_admin
def inbound_sms_admin():
data = inbound_number_client.get_all_inbound_sms_number_service()
return render_template('views/inbound-sms-admin.html', inbound_num_list=data)