diff --git a/packages/manager/CHANGELOG.md b/packages/manager/CHANGELOG.md index af6aa4fdba9..6df32b22e92 100644 --- a/packages/manager/CHANGELOG.md +++ b/packages/manager/CHANGELOG.md @@ -10,6 +10,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p ### Fixed: - "Something went wrong" error on firewall create ([#12859](https://github.com/linode/manager/pull/12859)) +- Restricted user with account access unable to access billing page on new session ([#12861](https://github.com/linode/manager/pull/12861)) ## [2025-09-09] - v1.150.0 diff --git a/packages/queries/src/account/account.ts b/packages/queries/src/account/account.ts index 3fcab66660d..6f554902b29 100644 --- a/packages/queries/src/account/account.ts +++ b/packages/queries/src/account/account.ts @@ -17,14 +17,12 @@ import type { Token, } from '@linode/api-v4'; -export const useAccount = () => { - const { data: profile } = useProfile(); - +export const useAccount = (enabled: boolean = true) => { return useQuery({ ...accountQueries.account, ...queryPresets.oneTimeFetch, ...queryPresets.noRetry, - enabled: !profile?.restricted, + enabled, }); }; diff --git a/packages/queries/src/account/settings.ts b/packages/queries/src/account/settings.ts index b17d7d6ced5..5a525f25c39 100644 --- a/packages/queries/src/account/settings.ts +++ b/packages/queries/src/account/settings.ts @@ -2,7 +2,6 @@ import { updateAccountSettings } from '@linode/api-v4/lib/account'; import { useMutation, useQuery, useQueryClient } from '@tanstack/react-query'; import { queryPresets } from '../base'; -import { useProfile } from '../profile'; import { accountQueries } from './queries'; import type { AccountSettings } from '@linode/api-v4/lib/account'; @@ -10,13 +9,10 @@ import type { APIError } from '@linode/api-v4/lib/types'; import type { QueryClient } from '@tanstack/react-query'; export const useAccountSettings = () => { - const { data: profile } = useProfile(); - return useQuery({ ...accountQueries.settings, ...queryPresets.oneTimeFetch, ...queryPresets.noRetry, - enabled: !profile?.restricted, }); };