Explorar el Código

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

master
Lene hace 4 años
padre
commit
7a165de08f
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1
    1
      UnivateProperties_API/Repository/Timeshare/WeekRepository.cs

+ 1
- 1
UnivateProperties_API/Repository/Timeshare/WeekRepository.cs Ver fichero

@@ -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…
Cancelar
Guardar