mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-19 14:09:20 -04:00
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.
This commit is contained in:
@@ -1,8 +1,7 @@
|
||||
from flask import abort, redirect, render_template, request, url_for
|
||||
from flask_login import current_user, login_required
|
||||
from notifications_utils.international_billing_rates import (
|
||||
INTERNATIONAL_BILLING_RATES,
|
||||
)
|
||||
from notifications_utils.international_billing_rates import \
|
||||
INTERNATIONAL_BILLING_RATES
|
||||
from notifications_utils.template import HTMLEmailTemplate
|
||||
|
||||
from app import convert_to_boolean
|
||||
|
||||
Reference in New Issue
Block a user