[v10.0.x] NestedFolders: Fetch access control metadata for folder view (#67814)

NestedFolders: Fetch access control metadata for folder view (#67786)

(cherry picked from commit 338e98e237)

Co-authored-by: Josh Hunt <joshhunt@users.noreply.github.com>
This commit is contained in:
Grot (@grafanabot)
2023-05-04 12:40:57 +03:00
committed by GitHub
co-authored by Josh Hunt
parent 1f78546ba1
commit 9a665a216b
@@ -36,7 +36,7 @@ export const browseDashboardsAPI = createApi({
baseQuery: createBackendSrvBaseQuery({ baseURL: '/api' }),
endpoints: (builder) => ({
getFolder: builder.query<FolderDTO, string>({
query: (folderUID) => ({ url: `/folders/${folderUID}` }),
query: (folderUID) => ({ url: `/folders/${folderUID}`, params: { accesscontrol: true } }),
}),
getAffectedItems: builder.query<DescendantCount, DashboardTreeSelection>({
queryFn: async (selectedItems) => {