Changed the access to the page to query (#3047)
This commit is contained in:
parent
ae5200154b
commit
93df9b98d3
2 changed files with 4 additions and 4 deletions
|
@ -26,7 +26,7 @@ export const ClientRoute: RouteDef = {
|
||||||
path: "/:realm/clients/:clientId/:tab",
|
path: "/:realm/clients/:clientId/:tab",
|
||||||
component: lazy(() => import("../ClientDetails")),
|
component: lazy(() => import("../ClientDetails")),
|
||||||
breadcrumb: (t) => t("clients:clientSettings"),
|
breadcrumb: (t) => t("clients:clientSettings"),
|
||||||
access: "view-clients",
|
access: "query-clients",
|
||||||
};
|
};
|
||||||
|
|
||||||
export const toClient = (params: ClientParams): LocationDescriptorObject => ({
|
export const toClient = (params: ClientParams): LocationDescriptorObject => ({
|
||||||
|
|
|
@ -96,14 +96,14 @@ export const ClientScopes = ({
|
||||||
const clientScopes = await adminClient.clientScopes.find();
|
const clientScopes = await adminClient.clientScopes.find();
|
||||||
|
|
||||||
const find = (id: string) =>
|
const find = (id: string) =>
|
||||||
clientScopes.find((clientScope) => id === clientScope.id)!;
|
clientScopes.find((clientScope) => id === clientScope.id);
|
||||||
|
|
||||||
const optional = optionalClientScopes.map((c) => {
|
const optional = optionalClientScopes.map((c) => {
|
||||||
const scope = find(c.id!);
|
const scope = find(c.id!);
|
||||||
const row: Row = {
|
const row: Row = {
|
||||||
...c,
|
...c,
|
||||||
type: ClientScope.optional,
|
type: ClientScope.optional,
|
||||||
description: scope.description,
|
description: scope?.description,
|
||||||
};
|
};
|
||||||
return row;
|
return row;
|
||||||
});
|
});
|
||||||
|
@ -113,7 +113,7 @@ export const ClientScopes = ({
|
||||||
const row: Row = {
|
const row: Row = {
|
||||||
...c,
|
...c,
|
||||||
type: ClientScope.default,
|
type: ClientScope.default,
|
||||||
description: scope.description,
|
description: scope?.description,
|
||||||
};
|
};
|
||||||
return row;
|
return row;
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue