This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user