Implement an entity access controller for a view

Created on 19 December 2012, about 12 years ago
Updated 3 February 2025, 20 days ago

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)

πŸ“Œ Task
Status

Postponed: needs info

Version

11.0 πŸ”₯

Component

views.module

Created by

πŸ‡©πŸ‡ͺGermany dawehner

Live updates comments and jobs are added and updated live.
  • VDC

    Related to the Views in Drupal Core initiative.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΊπŸ‡ΈUnited States smustgrave

    Thank you for creating this issue to improve Drupal.

    We are working to decide if this task is still relevant to a currently supported version of Drupal. There hasn't been any discussion here for over 8 years which suggests that this has either been implemented or is no longer relevant. Your thoughts on this will allow a decision to be made.

    Since we need more information to move forward with this issue, the status is now Postponed (maintainer needs more info). If we don't receive additional information to help with the issue, it may be closed after three months.

    Thanks!

Production build 0.71.5 2024