Skip to content

Commit f50f559

Browse files
authored
Merge pull request #12866 from linode/staging
Hot fix Release V1.150.1 - staging - master
2 parents 75022d8 + 7dce514 commit f50f559

File tree

7 files changed

+19
-12
lines changed

7 files changed

+19
-12
lines changed

packages/manager/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
44

55
The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/).
66

7+
## [2025-09-11] - v1.150.1
8+
9+
### Fixed:
10+
11+
- "Something went wrong" error on firewall create ([#12859](https://github.com/linode/manager/pull/12859))
12+
713
## [2025-09-09] - v1.150.0
814

915
### Added:

packages/manager/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "linode-manager",
33
"author": "Linode",
44
"description": "The Linode Manager website",
5-
"version": "1.150.0",
5+
"version": "1.150.1",
66
"private": true,
77
"type": "module",
88
"bugs": {
@@ -189,4 +189,4 @@
189189
"Firefox ESR",
190190
"not dead"
191191
]
192-
}
192+
}

packages/manager/src/features/IAM/hooks/usePermissions.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,8 @@ export const useQueryWithPermissions = <T extends EntityBase>(
181181
const permissions = entityPermissionsMap[entity.id];
182182
return (
183183
!profile?.restricted ||
184-
permissionsToCheck.every((permission) => permissions[permission])
184+
(permissions &&
185+
permissionsToCheck.every((permission) => permissions[permission]))
185186
);
186187
});
187188

packages/queries/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## [2025-09-11] - v0.13.1
2+
3+
### Fixed:
4+
5+
- Restricted user with account access unable to access billing page on new session ([#12861](https://github.com/linode/manager/pull/12861))
6+
17
## [2025-09-09] - v0.13.0
28

39
### Upcoming Features:

packages/queries/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@linode/queries",
3-
"version": "0.13.0",
3+
"version": "0.13.1",
44
"description": "Linode Utility functions library",
55
"main": "src/index.js",
66
"module": "src/index.ts",

packages/queries/src/account/account.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,12 @@ import type {
1717
Token,
1818
} from '@linode/api-v4';
1919

20-
export const useAccount = () => {
21-
const { data: profile } = useProfile();
22-
20+
export const useAccount = (enabled: boolean = true) => {
2321
return useQuery<Account, APIError[]>({
2422
...accountQueries.account,
2523
...queryPresets.oneTimeFetch,
2624
...queryPresets.noRetry,
27-
enabled: !profile?.restricted,
25+
enabled,
2826
});
2927
};
3028

packages/queries/src/account/settings.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,17 @@ import { updateAccountSettings } from '@linode/api-v4/lib/account';
22
import { useMutation, useQuery, useQueryClient } from '@tanstack/react-query';
33

44
import { queryPresets } from '../base';
5-
import { useProfile } from '../profile';
65
import { accountQueries } from './queries';
76

87
import type { AccountSettings } from '@linode/api-v4/lib/account';
98
import type { APIError } from '@linode/api-v4/lib/types';
109
import type { QueryClient } from '@tanstack/react-query';
1110

1211
export const useAccountSettings = () => {
13-
const { data: profile } = useProfile();
14-
1512
return useQuery<AccountSettings, APIError[]>({
1613
...accountQueries.settings,
1714
...queryPresets.oneTimeFetch,
1815
...queryPresets.noRetry,
19-
enabled: !profile?.restricted,
2016
});
2117
};
2218

0 commit comments

Comments
 (0)