Ensure you can only view/edit http functions created by the currently logged in user

This commit is contained in:
Peter Stockings
2023-12-20 22:57:39 +11:00
parent 30e16277df
commit 8d38c39604
6 changed files with 48 additions and 37 deletions

View File

@@ -1,6 +1,7 @@
def create_http_function_view_model(http_function):
function_view_model = {
"id": http_function['id'],
"user_id": http_function['user_id'],
"name": http_function['name'],
"script_content": http_function['script_content'],
"invoked_count": http_function['invoked_count'],