This commit is contained in:
2020-07-30 23:48:32 +00:00
parent dfa47ab89f
commit 3b8b29f277
6 changed files with 205 additions and 134 deletions

View File

@@ -31,7 +31,7 @@ namespace AyaNova.Biz
u.Roles = AuthorizationRoles.All;//AuthorizationRoles.BizAdminFull | AuthorizationRoles.OpsAdminFull | AuthorizationRoles.DispatchFull | AuthorizationRoles.InventoryFull;
u.UserType = UserType.Administrator;
u.UserType = UserType.NotService;
u.UserOptions = new UserOptions();
u.UserOptions.TranslationId = ServerBootConfig.AYANOVA_DEFAULT_TRANSLATION_ID;//Ensure primeTranslations is called first
await ct.User.AddAsync(u);

View File

@@ -4,13 +4,11 @@ namespace AyaNova.Biz
/// AyaNova User types
/// </summary>
public enum UserType : int
{
Administrator = 1,
Service = 2,
NotService = 3,
Customer = 4,
HeadOffice = 5,
Utility = 6,
ServiceContractor = 7
{
Service = 1,
NotService = 2,
Customer = 3,
HeadOffice = 4,
ServiceContractor = 5
}
}//eons