Skip to content

Commit a3ee6f8

Browse files
committed
fixed #129: fixed creating a new role problem
1 parent 66c7342 commit a3ee6f8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/AbpCompanyName.AbpProjectName.Application/Roles/RoleAppService.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ public override async Task<RoleDto> Create(CreateRoleDto input)
4949

5050
CheckErrors(await _roleManager.CreateAsync(role));
5151

52+
UnitOfWorkManager.Current.SaveChanges();
53+
5254
var grantedPermissions = PermissionManager
5355
.GetAllPermissions()
5456
.Where(p => input.Permissions.Contains(p.Name))

0 commit comments

Comments
 (0)