How to Show only Images that User Has with Path Generation #443
-
I mean to say I have a Superadmin and a Client, where the Superadmin can have all access, but the Client can only see those items that they have uploaded using the path generator. But Currently he is able to see all the content. CuratorPicker::make('medias')
->hiddenLabel()
->relationship('medias', 'id')
->helperText(__('Here you can attach all files needed for this Appointment'))
->multiple()
->pathGenerator(UserPathGenerator::class)
->columnSpanFull()
->listDisplay(), |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Could possibly use a callback in the limitToDirectory() callback. Then for the resource you'd need to implement a custom policy. |
Beta Was this translation helpful? Give feedback.
-
I tried this and worked for me, I am added up an PR where we can remove the navigation which is currently not working as excepted from config:
|
Beta Was this translation helpful? Give feedback.
I tried this and worked for me, I am added up an PR where we can remove the navigation which is currently not working as excepted from config: