(self, entry, user_id, system_call=False)
| 341 | file_utils.write_file(log_file_path, new_content.encode(ENCODING), byte_content=True) |
| 342 | |
| 343 | def _can_access_entry(self, entry, user_id, system_call=False): |
| 344 | if entry is None: |
| 345 | return True |
| 346 | |
| 347 | if is_same_user(entry.user_id, user_id): |
| 348 | return True |
| 349 | |
| 350 | if system_call: |
| 351 | return True |
| 352 | |
| 353 | return self._authorizer.has_full_history_access(user_id) |
| 354 | |
| 355 | |
| 356 | class LogNameCreator: |
no test coverage detected