mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-03 18:01:08 -05:00
Merge pull request #580 from GSA/notify-api-553
notify-api-533 add flask command to promote user to platform admin
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user