aboutsummaryrefslogtreecommitdiff
path: root/gn2/wqflask/oauth2/groups.py
diff options
context:
space:
mode:
Diffstat (limited to 'gn2/wqflask/oauth2/groups.py')
-rw-r--r--gn2/wqflask/oauth2/groups.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/gn2/wqflask/oauth2/groups.py b/gn2/wqflask/oauth2/groups.py
index e4028497..b3f1f54d 100644
--- a/gn2/wqflask/oauth2/groups.py
+++ b/gn2/wqflask/oauth2/groups.py
@@ -44,7 +44,7 @@ def create_group():
def __setup_group__(response):
session["user_details"]["group"] = response
- resp = oauth2_post("auth/group/create", data=dict(request.form))
+ resp = oauth2_post("auth/group/create", json=dict(request.form))
return resp.either(
handle_error("oauth2.group.join_or_create"),
handle_success(
@@ -116,7 +116,7 @@ def accept_join_request():
return redirect(url_for("oauth2.group.list_join_requests"))
return oauth2_post(
"auth/group/requests/join/accept",
- data=request.form).either(
+ json=dict(request.form)).either(
handle_error("oauth2.group.list_join_requests"),
__success__)
@@ -132,7 +132,7 @@ def reject_join_request():
return redirect(url_for("oauth2.group.list_join_requests"))
return oauth2_post(
"auth/group/requests/join/reject",
- data=request.form).either(
+ json=dict(request.form)).either(
handle_error("oauth2.group.list_join_requests"),
__success__)
@@ -163,7 +163,7 @@ def add_delete_privilege_to_role(
}
return oauth2_post(
uris[direction],
- data={
+ json={
"group_role_id": group_role_id,
"privilege_id": privilege_id
}).either(__error__, __success__)