Skip to content

Commit

Permalink
TODO
Browse files Browse the repository at this point in the history
  • Loading branch information
violetamedallia committed Apr 1, 2024
1 parent 20e21f8 commit 9e58d69
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/service/Users.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,5 +69,8 @@ def _get_user_info(self, access_token):
return user_data

def update_user(self, user_id: int, update_data: dict):
# TODO: aca habria que chequear a partir del token, session o algo que
# es el propio usuario editando sus datos y no permitir
# que un usuario edite los de un tercero
self.get_user(user_id)
self.user_repository.edit_user(user_id, update_data)

0 comments on commit 9e58d69

Please sign in to comment.