2 커밋

작성자 SHA1 메시지 날짜
  Lene 04ec2e435e Merge branch 'master' of http://provision-sa.co.za:3000/Provision/UnivatePropertiesAPI 4 년 전
  Lene 7a165de08f Made changes to only show timeshare weeks of user if not super admin 4 년 전
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1
    1
      UnivateProperties_API/Repository/Timeshare/WeekRepository.cs

+ 1
- 1
UnivateProperties_API/Repository/Timeshare/WeekRepository.cs 파일 보기

@@ -121,7 +121,7 @@ namespace UnivateProperties_API.Repository.Timeshare
121 121
                 var individual = _dbContext.Individuals.FirstOrDefault(x => x.UserId == userId);
122 122
                 if(individual != null)
123 123
                 {
124
-                    foreach (var item in GetDetailedAll().Where(x => x.OwnerId == userId))
124
+                    foreach (var item in GetDetailedAll().Where(x => x.OwnerId == individual.Id))
125 125
                     {
126 126
                         list.Add(new WeekDto(item));
127 127
                     }

Loading…
취소
저장