Skip to content

Commit

Permalink
Allow principal in sys_metadata with ArchivistTool init
Browse files Browse the repository at this point in the history
  • Loading branch information
avoinea committed Jul 31, 2023
1 parent b568544 commit c80bc31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Products/CMFEditions/ArchivistTool.py
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ def __init__(
sys_metadata["comment"] = sys_metadata.get("comment", "")
sys_metadata["timestamp"] = sys_metadata.get("timestamp", int(time.time()))
sys_metadata["originator"] = sys_metadata.get("originator", None)
sys_metadata["principal"] = getUserId()
sys_metadata["principal"] = sys_metadata.get("principal", getUserId())
sys_metadata["approxSize"] = approxSize
sys_metadata["parent"] = {
"history_id": portal_uidhandler.register(parent),
Expand Down

0 comments on commit c80bc31

Please sign in to comment.