MCPcopy Index your code
hub / github.com/bugy/script-server / _can_access_entry

Method _can_access_entry

src/execution/logging.py:343–353  ·  view source on GitHub ↗
(self, entry, user_id, system_call=False)

Source from the content-addressed store, hash-verified

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
356class LogNameCreator:

Callers 2

get_history_entriesMethod · 0.95
find_history_entryMethod · 0.95

Calls 2

is_same_userFunction · 0.90

Tested by

no test coverage detected