Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions packages/manager/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions packages/manager/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down Expand Up @@ -189,4 +189,4 @@
"Firefox ESR",
"not dead"
]
}
}
3 changes: 2 additions & 1 deletion packages/manager/src/features/IAM/hooks/usePermissions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,8 @@ export const useQueryWithPermissions = <T extends EntityBase>(
const permissions = entityPermissionsMap[entity.id];
return (
!profile?.restricted ||
permissionsToCheck.every((permission) => permissions[permission])
(permissions &&
permissionsToCheck.every((permission) => permissions[permission]))
);
});

Expand Down
6 changes: 6 additions & 0 deletions packages/queries/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
2 changes: 1 addition & 1 deletion packages/queries/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
6 changes: 2 additions & 4 deletions packages/queries/src/account/account.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<Account, APIError[]>({
...accountQueries.account,
...queryPresets.oneTimeFetch,
...queryPresets.noRetry,
enabled: !profile?.restricted,
enabled,
});
};

Expand Down
4 changes: 0 additions & 4 deletions packages/queries/src/account/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,17 @@ 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';
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<AccountSettings, APIError[]>({
...accountQueries.settings,
...queryPresets.oneTimeFetch,
...queryPresets.noRetry,
enabled: !profile?.restricted,
});
};

Expand Down
Loading