Skip to content

Commit

Permalink
Merge pull request #101 from plone/principal-fix
Browse files Browse the repository at this point in the history
Allow principal in sys_metadata with ArchivistTool init
  • Loading branch information
jensens authored Oct 4, 2023
2 parents 254a2ed + 5d0fe68 commit 6e4cade
Show file tree
Hide file tree
Showing 2 changed files with 2 additions 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
1 change: 1 addition & 0 deletions news/101.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Allow principal in sys_metadata with ArchivistTool init

0 comments on commit 6e4cade

Please sign in to comment.