Skip to content

Commit

Permalink
fixup! Show current user and confidential info
Browse files Browse the repository at this point in the history
  • Loading branch information
myieye committed Sep 25, 2024
1 parent 0b65db2 commit c7015d1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public async Task InvokeAsync(IMiddlewareContext context, IPermissionService per
if (!await permissionService.CanViewProjectMembers(projId))
{
// Confidential project, and user doesn't have permission to see its users, so only show the current user's membership
context.Result = projectUsers.Where(pu => pu.User?.Id == loggedInContext.MaybeUser?.Id);
context.Result = projectUsers.Where(pu => pu.User?.Id == loggedInContext.MaybeUser?.Id).ToList();
}
}
}
Expand Down

0 comments on commit c7015d1

Please sign in to comment.