Entity print views link is displayed even if user doesn't have permissions to print views

Created on 23 July 2025, 10 days ago

Problem/Motivation

Entity print views link is displayed even if user doesn't have permissions to print views

Steps to reproduce

- create a view
- add View PDF link to a view's header via Add Header -> Print (see screenshot attached)
- create a role/user without permission to 'entity print views access'
- login as that user
Expected:
- View PDF link is not rendered

Result:
- View PDF link is rendered (see screenshot attached)
- 403 if user tries to click on it (see screenshot attached)

Proposed resolution

check for permission 'entity print views access' before rendering the link

Remaining tasks

- fix the bug
- add tests

User interface changes

none

API changes

none

Data model changes

none

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

🇦🇺Australia jannakha Brisbane!

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

Comments & Activities

Production build 0.71.5 2024