Correct and simplify access checks

Created on 11 July 2024, 4 months ago

Problem/Motivation

If a node or a term is done by checking the permissions of the anonymous user and by looking at the published status.

This is incorrect because access checks can be extended by hooks or other means.

Proposed resolution

Use $node->access('view', $anonymous_account) to check if the anonymous user has access.

🐛 Bug report
Status

Active

Version

3.1

Component

Code

Created by

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

Comments & Activities

Production build 0.71.5 2024