Skip to content

Commit

Permalink
Add a comment explaining isAgentConfigured
Browse files Browse the repository at this point in the history
  • Loading branch information
gzdunek committed Sep 15, 2023
1 parent 3b3636b commit 31bcff9
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,8 @@ export const ConnectMyComputerContextProvider: FC<{
mainProcessClient.getRuntimeSettings()
);

// We check `isAgentConfigured`, because the user should always have access to the agent after configuring it.
// https://github.com/gravitational/teleport/blob/master/rfd/0133-connect-my-computer.md#access-to-ui-and-autostart
return isFeatureFlagEnabled && (hasPermissions || isAgentConfigured);
}, [configService, isAgentConfigured, mainProcessClient, rootCluster]);

Expand Down

0 comments on commit 31bcff9

Please sign in to comment.