mirror of
https://github.com/strapi/strapi.git
synced 2025-11-02 02:44: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,
|
||||
error: currentFolderError,
|
||||
} = useFolder(query?.folder, {
|
||||
enabled: !!query?.folder,
|
||||
enabled: canRead && !!query?.folder,
|
||||
});
|
||||
|
||||
// Folder was not found: redirect to the media library root
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user