#7803 Add EditorGroupAlias and WriterGroupAlias to Constants cl… (#7804)

This commit is contained in:
Erik-Jan Westendorp
2020-03-24 14:03:51 +01:00
committed by GitHub
parent 99152ffef3
commit 0a79e28205
6 changed files with 8 additions and 6 deletions

View File

@@ -23,7 +23,7 @@ namespace Umbraco.Web.Security
string[] defaultUserGroups = null,
string defaultCulture = null)
{
_defaultUserGroups = defaultUserGroups ?? new[] { "editor" };
_defaultUserGroups = defaultUserGroups ?? new[] { Constants.Security.EditorGroupAlias };
_autoLinkExternalAccount = autoLinkExternalAccount;
_defaultCulture = defaultCulture ?? Current.Configs.Global().DefaultUILanguage;
}

View File

@@ -32,7 +32,7 @@ namespace Umbraco.Web.Security.Providers
}
private readonly IMemberTypeService _memberTypeService;
private string _defaultMemberTypeAlias = "writer";
private string _defaultMemberTypeAlias = Constants.Security.WriterGroupAlias;
private volatile bool _hasDefaultMember = false;
private static readonly object Locker = new object();