Skip to content

Commit 3fcb55d

Browse files
committed
Add TOD
1 parent a7614e3 commit 3fcb55d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

site/src/components/UsersTable/UsersTableBody.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,8 @@ export const UsersTableBody: FC<
7777

7878
const permissions = usePermissions()
7979
const canViewDeployment = Boolean(permissions.viewDeploymentValues)
80+
// Ideally this only runs if 'canViewDeployment' is true.
81+
// TODO: Prevent api call if the user does not have the perms.
8082
const [state] = useMachine(deploymentConfigMachine)
8183
const { deploymentValues } = state.context
8284

0 commit comments

Comments
 (0)