|
@@ -393,14 +393,15 @@ namespace OASystem.Infrastructure.Repositories.Groups
|
|
|
var userIds = users.Select(x => x.Id).ToList();
|
|
|
if (userIds.Any())
|
|
|
{
|
|
|
- var permissions = new List<Grp_EnterExitCostDraftPermission>();
|
|
|
+ var permissions = new List<Grp_EnterExitCostPermission>();
|
|
|
foreach (var userId in userIds)
|
|
|
{
|
|
|
- permissions.Add(new Grp_EnterExitCostDraftPermission()
|
|
|
+ permissions.Add(new Grp_EnterExitCostPermission()
|
|
|
{
|
|
|
- DraftId = enterExitId,
|
|
|
+ GroupId = enterExitId,
|
|
|
UserId = userId,
|
|
|
- Permission = 1
|
|
|
+ Permission = 1,
|
|
|
+ CreateUserId = dto.UserId,
|
|
|
});
|
|
|
}
|
|
|
|