Fix install issues with super user

This commit is contained in:
Stephan
2018-03-21 16:01:49 +01:00
parent 37870e906c
commit 10972002d9
5 changed files with 19 additions and 15 deletions

View File

@@ -73,10 +73,10 @@ namespace Umbraco.Web
if (user == null)
{
Current.Logger.Debug(typeof(NotificationServiceExtensions), "There is no current Umbraco user logged in, the notifications will be sent from the administrator");
user = userService.GetUserById(0);
user = userService.GetUserById(Constants.Security.SuperId);
if (user == null)
{
Current.Logger.Warn(typeof(NotificationServiceExtensions), "Noticiations can not be sent, no admin user with id 0 could be resolved");
Current.Logger.Warn(typeof(NotificationServiceExtensions), $"Noticiations can not be sent, no admin user with id {Constants.Security.SuperId} could be resolved");
return;
}
}
@@ -98,10 +98,10 @@ namespace Umbraco.Web
if (user == null)
{
Current.Logger.Debug(typeof(NotificationServiceExtensions), "There is no current Umbraco user logged in, the notifications will be sent from the administrator");
user = userService.GetUserById(0);
user = userService.GetUserById(Constants.Security.SuperId);
if (user == null)
{
Current.Logger.Warn(typeof(NotificationServiceExtensions), "Noticiations can not be sent, no admin user with id 0 could be resolved");
Current.Logger.Warn(typeof(NotificationServiceExtensions), $"Noticiations can not be sent, no admin user with id {Constants.Security.SuperId} could be resolved");
return;
}
}