esmero / format_strawberryfield

Set of Display formatters, extractors and utils to make Strawberry field data glow
GNU Lesser General Public License v3.0
6 stars 9 forks source link

Add Access Handler class/annotation to Metadata Display Entities #402

Open DiegoPino opened 10 months ago

DiegoPino commented 10 months ago

What?

We are right now inheriting the default access handler for generic Content Entities. There is nothing generic about Metadata Displays and we should provide for better future-proof compatibility/needs a custom Access handler class. A good example is \Drupal\node\NodeAccessControlHandler

This also allows us to implement more fine grained permissions for revisions and unrelated, maybe also handle the strange use case that a metadata display was created by a user, and then the user is deleted.

thx