reverts default userId parameters to be zero which means 'unknown'

This commit is contained in:
Shannon
2018-05-31 23:12:48 +10:00
parent abbb119fc9
commit 2f331de7b4
18 changed files with 188 additions and 188 deletions

View File

@@ -227,7 +227,7 @@ namespace Umbraco.Core.Services.Implement
/// </summary>
/// <param name="dictionaryItem"><see cref="IDictionaryItem"/> to save</param>
/// <param name="userId">Optional id of the user saving the dictionary item</param>
public void Save(IDictionaryItem dictionaryItem, int userId = -1)
public void Save(IDictionaryItem dictionaryItem, int userId = 0)
{
using (var scope = ScopeProvider.CreateScope())
{
@@ -256,7 +256,7 @@ namespace Umbraco.Core.Services.Implement
/// </summary>
/// <param name="dictionaryItem"><see cref="IDictionaryItem"/> to delete</param>
/// <param name="userId">Optional id of the user deleting the dictionary item</param>
public void Delete(IDictionaryItem dictionaryItem, int userId = -1)
public void Delete(IDictionaryItem dictionaryItem, int userId = 0)
{
using (var scope = ScopeProvider.CreateScope())
{
@@ -356,7 +356,7 @@ namespace Umbraco.Core.Services.Implement
/// </summary>
/// <param name="language"><see cref="ILanguage"/> to save</param>
/// <param name="userId">Optional id of the user saving the language</param>
public void Save(ILanguage language, int userId = -1)
public void Save(ILanguage language, int userId = 0)
{
using (var scope = ScopeProvider.CreateScope())
{
@@ -382,7 +382,7 @@ namespace Umbraco.Core.Services.Implement
/// </summary>
/// <param name="language"><see cref="ILanguage"/> to delete</param>
/// <param name="userId">Optional id of the user deleting the language</param>
public void Delete(ILanguage language, int userId = -1)
public void Delete(ILanguage language, int userId = 0)
{
using (var scope = ScopeProvider.CreateScope())
{