Entity access by field ignores 'view any unpublished content' permission

Created on 14 February 2024, 5 months ago

Problem/Motivation

EntityAccessHelper::entityAccessCheck() in open social submodule "entity_Access_by_field" only checks for "view own unpublished content" and admin permission (in case of nodes: "administer content") but skips checking for the "view any unpublished content" permission. In my case I have an editor role which should be allowed to view any unpublished content, but not to administer nodes, but does not work because of missing check for the specific permission.

Proposed resolution

Add check for "view any unpublished content" and return neutral access result.

πŸ“Œ Task
Status

Needs review

Version

11.11

Component

Code (back-end)

Created by

πŸ‡©πŸ‡ͺGermany Duwid

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024