Blago Culjak
09/24/2024, 3:08 PMMike Chambers
09/24/2024, 3:16 PM_contentService.Publish(post, new[] { "*" }, -1);
maybe? where -1 is the SuperAdmin?Mike Chambers
09/24/2024, 3:19 PMBlago Culjak
09/25/2024, 4:54 AMkdx-perbol
09/25/2024, 6:38 AM-1
to Publish()
. You are passing 0
Blago Culjak
09/25/2024, 6:45 AMkdx-perbol
09/25/2024, 6:48 AMumbracoNode.nodeUser
means. The database for a "content item" afaik has nodes, documents, versions, language versions, and I think all these could have different user IDs. Iirc the node is the top-level umbrella for an item in the content tree. So yes, 0 could be set as the "published by" on a "document version" or similar.
Do you get the error when passing -1
to Publish()
?Blago Culjak
09/25/2024, 7:18 AM