notify-api-533 add flask command to promote user to platform admin

This commit is contained in:
Kenneth Kehl
2023-11-06 13:31:03 -08:00
parent 9cdc507f6c
commit aa7b5d3905
5 changed files with 59 additions and 7 deletions

View File

@@ -70,6 +70,7 @@ def create_user(
state="active",
id_=None,
name="Test User",
platform_admin=False,
):
data = {
"id": id_ or uuid.uuid4(),
@@ -78,6 +79,7 @@ def create_user(
"password": "password",
"mobile_number": mobile_number,
"state": state,
"platform_admin": platform_admin,
}
user = User.query.filter_by(email_address=email).first()
if not user: