From 6799268ea735ece65c548a5111e8e444680dd0fd Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Fri, 3 Mar 2023 14:01:26 +0300 Subject: oauth2: Bugfix: Ensure to send the list correctly. --- wqflask/wqflask/oauth2/roles.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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__) -- cgit v1.2.3