소스 검색

Made changes to only show timeshare weeks of user if not super admin

master
Lene 4 년 전
부모
커밋
7a165de08f
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…
취소
저장