Remove current user_ids from error

This commit is contained in:
Peter Stockings
2023-12-21 22:34:03 +11:00
parent bb29718467
commit 34186d25a0

2
app.py
View File

@@ -246,7 +246,7 @@ def execute_http_function(user_id, function):
return login_manager.unauthorized() return login_manager.unauthorized()
if int(current_user.id) != user_id: if int(current_user.id) != user_id:
return jsonify({'error': 'Function belongs to another user', 'current_user_id': current_user.id, 'user_id': user_id}), 404 return jsonify({'error': 'Function belongs to another user'}), 404
request_data = { request_data = {
'method': request.method, 'method': request.method,