thedevdojo / voyager

Voyager - The Missing Laravel Admin
https://voyager.devdojo.com
MIT License
11.72k stars 2.67k forks source link

Give Restricted Access of Media #5794

Open joginder89 opened 9 months ago

joginder89 commented 9 months ago

Laravel version

Laravel 9/10

PHP version

8.0

Voyager version

1.6

Description of problem

I have Users having role editor, now I want to give access to media, so that he can upload the images in bulk and then use later, but I want to give access to a specific folder, so that he cannot see or delete other images. Currently I found if I give access to media page then user will be able to see all images and he can delete the images.

Proposed solution

Admin should have permission to decide the directory/folder path, where user can upload images using media page. Like Admin can create folder like public/storage/user1 and public/storage/user2 and user1 have access only to user1 folder where he can see and upload media files.

Alternatives considered

No response

Additional context

No response