Skip to content

Commit 2158a78

Browse files
committed
Initialize User Roles under CreateTenantAdminUser method.
1 parent bc806f4 commit 2158a78

File tree

1 file changed

+3
-1
lines changed
  • aspnet-core/src/AbpCompanyName.AbpProjectName.Core/Authorization/Users

1 file changed

+3
-1
lines changed

aspnet-core/src/AbpCompanyName.AbpProjectName.Core/Authorization/Users/User.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
using System;
2+
using System.Collections.Generic;
23
using Abp.Authorization.Users;
34
using Abp.Extensions;
45

@@ -21,7 +22,8 @@ public static User CreateTenantAdminUser(int tenantId, string emailAddress)
2122
UserName = AdminUserName,
2223
Name = AdminUserName,
2324
Surname = AdminUserName,
24-
EmailAddress = emailAddress
25+
EmailAddress = emailAddress,
26+
Roles = new List<UserRole>()
2527
};
2628

2729
user.SetNormalizedNames();

0 commit comments

Comments
 (0)