From cc234cad978bb704622a586d719d011e0f779064 Mon Sep 17 00:00:00 2001 From: Kim Date: Thu, 23 Mar 2023 12:53:14 +0100 Subject: [PATCH] added foldernames to inherited folder calls --- csharp/App/Backend/Controllers/Controller.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/csharp/App/Backend/Controllers/Controller.cs b/csharp/App/Backend/Controllers/Controller.cs index ec0402a68..6cece6018 100644 --- a/csharp/App/Backend/Controllers/Controller.cs +++ b/csharp/App/Backend/Controllers/Controller.cs @@ -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(); }