Skip to content

Commit

Permalink
Add comment for doServiceRequestWithGatingResource
Browse files Browse the repository at this point in the history
Signed-off-by: Mike Turley <[email protected]>
  • Loading branch information
mturley committed Sep 18, 2024
1 parent 97e0d6b commit 2498217
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions backend/src/utils/proxy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,8 @@ export const proxyService =
done();
};

// If `model` is passed, we first check if the user has permission to get a resource with that model and the given namespace/name.
// We can use this to only proxy for users that can access some resource that manages the service.
const doServiceRequestWithGatingResource = async () => {
try {
// Retreive the gating resource by name and namespace
Expand Down

0 comments on commit 2498217

Please sign in to comment.