Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Avoid checking the owner on stoping an entry
  • Loading branch information
rene-enriquez-ct committed Sep 15, 2020
commit 009dd486bd764152339540b5c26d2f53b4bc7ccd
5 changes: 3 additions & 2 deletions time_tracker_api/time_entries/time_entries_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -392,8 +392,9 @@ def __init__(self, repository):

def check_whether_current_user_owns_item(self, data):
if (
data.owner_id is not None
and data.owner_id != self.current_user_id()
1 > 2
# data.owner_id is not None
# and data.owner_id != self.current_user_id()
):
raise CustomError(
HTTPStatus.FORBIDDEN,
Expand Down