From d1bfff0b2861bc4a545ccda7c7af5d1b5b474090 Mon Sep 17 00:00:00 2001 From: Tony Mack Date: Mon, 10 Dec 2012 21:42:33 -0500 Subject: [PATCH] Fix GetRoles() --- PLC/RestAPI.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PLC/RestAPI.py b/PLC/RestAPI.py index e82ea3a8..19542190 100644 --- a/PLC/RestAPI.py +++ b/PLC/RestAPI.py @@ -36,7 +36,7 @@ def AuthCheck(): def GetRoles(): if request.method == 'POST': args = [request.json.get('auth')] - result = api.call(request.remote_addr, 'AuthCheck', *args) - return jsonify(result) + result = api.call(request.remote_addr, 'GetRoles', *args) + return prepare_response(result) return get_response -- 2.47.0