Skip to content
This repository has been archived by the owner on May 11, 2023. It is now read-only.

Read-only support in edit view #38

Open
allantatter opened this issue Aug 5, 2021 · 1 comment
Open

Read-only support in edit view #38

allantatter opened this issue Aug 5, 2021 · 1 comment
Assignees

Comments

@allantatter
Copy link
Contributor

It would be good if readonly() method works in edit view. It should display the uploaded files but not show the buttons below to open media library or delete files.

https://nova.laravel.com/docs/2.0/resources/fields.html#readonly-fields

@KasparRosin
Copy link
Member

KasparRosin commented Aug 5, 2021

@allantatter Maybe we should look into policies instead/also. https://nova.laravel.com/docs/3.0/resources/authorization.html#policies

Then we can define what exactly can the user do. We could build upon that to allow users to view only specific images or update only image metadata, but not upload new images.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants