mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-02-19 01:44:45 -05:00
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.
16 lines
462 B
Python
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)
|