artgris / FileManagerBundle

FileManager is a simple Multilingual File Manager Bundle for Symfony
MIT License
171 stars 89 forks source link

Hide folders from user #43

Closed 71m024 closed 4 years ago

71m024 commented 5 years ago

Is there a possible way to hide folders from specific users?
We have a hierarchy which contains folders for every user. If a user tries to access a foreign folder a AccessDeniedException is thrown but we would like to hide all the folders, not owned by a user.
A hook for access-checks or something similar would be useful.

akerbel commented 5 years ago

I have some kind the same. I created my custom config service and provided different 'dir' parameter for different users. The user cannot go outside of his folder and as result cannot see folders of other users.