aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2023-03-03 14:01:26 +0300
committerFrederick Muriuki Muriithi2023-03-03 14:01:26 +0300
commit6799268ea735ece65c548a5111e8e444680dd0fd (patch)
tree20ab5e5802ab6b5b1525ea7a69bbbb3654f4e33c /wqflask
parentf6aefe82ad1eb1163cdaadf598dc2cebe91569b4 (diff)
downloadgenenetwork2-6799268ea735ece65c548a5111e8e444680dd0fd.tar.gz
oauth2: Bugfix: Ensure to send the list correctly.
Diffstat (limited to 'wqflask')
-rw-r--r--wqflask/wqflask/oauth2/roles.py4
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__)