From a95f34fb136a9e0a5a77b9f843f4f8925f22a094 Mon Sep 17 00:00:00 2001 From: Robin Munn Date: Wed, 3 Jul 2024 14:00:15 +0700 Subject: [PATCH] Spread one-liner across multiple lines --- backend/LexBoxApi/GraphQL/LexQueries.cs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/backend/LexBoxApi/GraphQL/LexQueries.cs b/backend/LexBoxApi/GraphQL/LexQueries.cs index 32ec16cb5..3687cd4e4 100644 --- a/backend/LexBoxApi/GraphQL/LexQueries.cs +++ b/backend/LexBoxApi/GraphQL/LexQueries.cs @@ -104,7 +104,14 @@ public IQueryable MyOrgs(LexBoxDbContext context, LoggedInContext // Site admins and org admins can see everything if (permissionService.CanEditOrg(orgId)) return org; // Non-admins cannot see email addresses or usernames - org.Members?.ForEach(m => { if (m.User is not null) { m.User.Email = null; m.User.Username = null; } }); + org.Members?.ForEach(m => + { + if (m.User is not null) + { + m.User.Email = null; + m.User.Username = null; + } + }); // Members and non-members alike can see all public projects plus their own org.Projects = org.Projects?.Where(p => p.IsConfidential == false || permissionService.CanSyncProject(p.Id))?.ToList() ?? []; if (!permissionService.IsOrgMember(orgId))