User super user id

This commit is contained in:
Bjarne Fyrstenborg
2021-08-18 15:48:29 +02:00
committed by Nathan Woulfe
parent 98f5d471fc
commit dc359cc819

View File

@@ -934,7 +934,7 @@ namespace Umbraco.Core.Services.Implement
}
/// <inheritdoc />
public PublishResult SaveAndPublish(IContent content, string[] cultures, int userId = 0, bool raiseEvents = true)
public PublishResult SaveAndPublish(IContent content, string[] cultures, int userId = Constants.Security.SuperUserId, bool raiseEvents = true)
{
if (content == null) throw new ArgumentNullException(nameof(content));
if (cultures == null) throw new ArgumentNullException(nameof(cultures));