diff --git a/packages/manager/CHANGELOG.md b/packages/manager/CHANGELOG.md index aff53521328..da6ce3d28fa 100644 --- a/packages/manager/CHANGELOG.md +++ b/packages/manager/CHANGELOG.md @@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). +## [2025-09-11] - v1.150.1 + +### Fixed: + +- "Something went wrong" error on firewall create ([#12859](https://github.com/linode/manager/pull/12859)) + ## [2025-09-09] - v1.150.0 ### Added: diff --git a/packages/manager/package.json b/packages/manager/package.json index a53d571a399..3a178ec39d7 100644 --- a/packages/manager/package.json +++ b/packages/manager/package.json @@ -2,7 +2,7 @@ "name": "linode-manager", "author": "Linode", "description": "The Linode Manager website", - "version": "1.150.0", + "version": "1.150.1", "private": true, "type": "module", "bugs": { @@ -189,4 +189,4 @@ "Firefox ESR", "not dead" ] -} \ No newline at end of file +} diff --git a/packages/manager/src/features/IAM/hooks/usePermissions.ts b/packages/manager/src/features/IAM/hooks/usePermissions.ts index 155cbf37bd1..29a05aed948 100644 --- a/packages/manager/src/features/IAM/hooks/usePermissions.ts +++ b/packages/manager/src/features/IAM/hooks/usePermissions.ts @@ -181,7 +181,8 @@ export const useQueryWithPermissions = ( const permissions = entityPermissionsMap[entity.id]; return ( !profile?.restricted || - permissionsToCheck.every((permission) => permissions[permission]) + (permissions && + permissionsToCheck.every((permission) => permissions[permission])) ); }); diff --git a/packages/queries/CHANGELOG.md b/packages/queries/CHANGELOG.md index bcaed67d166..40eff0000f7 100644 --- a/packages/queries/CHANGELOG.md +++ b/packages/queries/CHANGELOG.md @@ -1,3 +1,9 @@ +## [2025-09-11] - v0.13.1 + +### Fixed: + +- Restricted user with account access unable to access billing page on new session ([#12861](https://github.com/linode/manager/pull/12861)) + ## [2025-09-09] - v0.13.0 ### Upcoming Features: diff --git a/packages/queries/package.json b/packages/queries/package.json index ffcf3041600..e5472496687 100644 --- a/packages/queries/package.json +++ b/packages/queries/package.json @@ -1,6 +1,6 @@ { "name": "@linode/queries", - "version": "0.13.0", + "version": "0.13.1", "description": "Linode Utility functions library", "main": "src/index.js", "module": "src/index.ts", 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, }); };