diff options
author | Frederick Muriuki Muriithi | 2023-03-03 14:01:26 +0300 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2023-03-03 14:01:26 +0300 |
commit | 6799268ea735ece65c548a5111e8e444680dd0fd (patch) | |
tree | 20ab5e5802ab6b5b1525ea7a69bbbb3654f4e33c | |
parent | f6aefe82ad1eb1163cdaadf598dc2cebe91569b4 (diff) | |
download | genenetwork2-6799268ea735ece65c548a5111e8e444680dd0fd.tar.gz |
oauth2: Bugfix: Ensure to send the list correctly.
-rw-r--r-- | wqflask/wqflask/oauth2/roles.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/wqflask/wqflask/oauth2/roles.py b/wqflask/wqflask/oauth2/roles.py index c9493a1e..cabfdfac 100644 --- a/wqflask/wqflask/oauth2/roles.py +++ b/wqflask/wqflask/oauth2/roles.py @@ -90,5 +90,7 @@ def create_role(): def __create_success__(*args): flash("Role created successfully.", "alert-success") return redirect(url_for("oauth2.role.user_roles")) - return oauth2_post("oauth2/group/role/create",data=form).either( + return oauth2_post( + "oauth2/group/role/create",data={ + "role_name": role_name, "privileges[]": privileges}).either( __create_error__,__create_success__) |