Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 294468

Implement an entity access controller for a view

$
0
0

Problem/Motivation

Since #1696660: Add an entity access API for single entity access there exists a way to control the access to an entity. Sadly views is way more complex then a single 'view' access to an entity.
The actual 'view' access is currently handled by access plugins, which should maybe be handled by this access controller.

Issues we came up so far:

  • Access depends on the display_id, not just the view itself, so you cannot use the actual EntityAccessInterface
  • Access requires the ViewExecutable, so it's a question whether you actually want to have that at all on the entity level.

On the longrun we might want to have different access configuration per $op, so you can configure that only certain roles can edit a view.

Proposed resolution

TODO

Remaining tasks

TODO

API changes

Maybe $view->access() -> $view->access($op)


Viewing all articles
Browse latest Browse all 294468

Trending Articles