Wrong entity access memory cache.

Created on 21 August 2023, over 1 year ago

Problem/Motivation

Entity access check in AccessHelper::checkAccess() is inmemory cached. Unfortunately it does not take into account operation and hence returns wrong results for different results for different operations e.g. view vs update entity operation.

Steps to reproduce

1. Create node.
2. Switch to untranslated language.
3. Visit node as anonymous user. Node edit link is visible, but it shouldn't.

Proposed resolution

Add operation dimension to cache.

πŸ› Bug report
Status

Needs review

Version

1.5

Component

Code

Created by

πŸ‡ΈπŸ‡°Slovakia trafo

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

Comments & Activities

Production build 0.71.5 2024