Files
notifications-admin/app/main/views/inbound_number.py
Leo Hemsted 7ddad7c99e dont use has_permissions to check for platform admins
platform_admin is a separate concept to permissions, so by removing the
checks for it from the current_user.has_permissions function, we can
simplify things greatly. We already record on the user whether they're
a platform admin anyway.
2018-03-06 13:08:06 +00:00

16 lines
462 B
Python

from flask import render_template
from flask_login import login_required
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'])
@login_required
@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)