added foldernames to inherited folder calls

This commit is contained in:
Kim 2023-03-23 12:53:14 +01:00
parent 7d4309f3af
commit cc234cad97
1 changed files with 2 additions and 2 deletions

View File

@ -113,7 +113,7 @@ public class Controller : ControllerBase
.Ancestors()
.SelectMany(f => f.UsersWithDirectAccess()
.Where(u => u.IsDescendantOf(user))
.Select(u => new { folderId = f.Id, user = u }))
.Select(u => new { folderId = f.Id, folderName = f.Name, user = u }))
.ToList();
}
@ -151,7 +151,7 @@ public class Controller : ControllerBase
.Ancestors()
.SelectMany(f => f.UsersWithDirectAccess()
.Where(u => u.IsDescendantOf(user))
.Select(u => new { folderId = f.Id, user = u }))
.Select(u => new { folderId = f.Id, folderName = f.Name, user = u }))
.ToList();
}