We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents cdad916 + b73e856 commit d32cc4fCopy full SHA for d32cc4f
time_tracker_api/time_entries/time_entries_model.py
@@ -392,9 +392,8 @@ def __init__(self, repository):
392
393
def check_whether_current_user_owns_item(self, data):
394
if (
395
- 1 > 2
396
- # data.owner_id is not None
397
- # and data.owner_id != self.current_user_id()
+ data.owner_id is not None
+ and data.owner_id != self.current_user_id()
398
):
399
raise CustomError(
400
HTTPStatus.FORBIDDEN,
@@ -622,10 +621,6 @@ def handle_date_filter_args(args: dict) -> dict:
622
621
'end_date': datetime_str(end_date),
623
}
624
625
- @staticmethod
626
- def current_user_id():
627
- return super().current_user_id()
628
-
629
630
def create_dao() -> TimeEntriesDao:
631
repository = TimeEntryCosmosDBRepository()
0 commit comments