mirror of
https://github.com/strapi/strapi.git
synced 2025-11-16 10:07:55 +00:00
ML: Take permissions into account before fetching a single folder
This commit is contained in:
parent
5659b5f031
commit
fc7865f8ee
@ -89,7 +89,7 @@ export const MediaLibrary = () => {
|
|||||||
isLoading: isCurrentFolderLoading,
|
isLoading: isCurrentFolderLoading,
|
||||||
error: currentFolderError,
|
error: currentFolderError,
|
||||||
} = useFolder(query?.folder, {
|
} = useFolder(query?.folder, {
|
||||||
enabled: !!query?.folder,
|
enabled: canRead && !!query?.folder,
|
||||||
});
|
});
|
||||||
|
|
||||||
// Folder was not found: redirect to the media library root
|
// Folder was not found: redirect to the media library root
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user