Simplify your stack and build anything. Or everything.
Build tomorrow’s web with a modern solution you truly own.
Code-based nature means you can build on top of it to power anything.
It’s time to take back your content infrastructure.

Hide delete button in sidebar inside of Media collection only?

default discord avatar
eddiedevlast year
1

Is there a way to hide the delete button inside of the Media collection?


When setting disabledDeleteAccess to false, I am not able to upload different images to the same item.


And due to this being relational, deleting is not an option at the moment.


thanks.



Hide delete button in sidebar inside of Media collection only?

  • default discord avatar
    dnl.krmrlast year

    @eddiedev you can set

    delete: () => false

    within the access property on collection level

    image.png
Star on GitHub

Star

Chat on Discord

Discord

online

Can't find what you're looking for?

Get dedicated engineering support directly from the Payload team..