Paragraph type permissions conflicts with view unpublished paragraph permission

Created on 21 November 2019, over 4 years ago
Updated 19 January 2024, 5 months ago

Although the main module allows to view unpublished paragraphs in frontend if setting `show_unpublished` is `true` for priviledged users, the submodule paragraphs_type_permissions has the hook_access that forbids access to all unpublished paragraphs without checking any conditions.

I suggest to add the checks for 'view unpublished paragraphs' permission in paragraphs_type_permissions_paragraph_access too.

The patch is attached.

πŸ› Bug report
Status

Needs work

Version

1.0

Component

Module: Type Permissions

Created by

πŸ‡©πŸ‡ͺGermany a.dmitriiev

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

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.

Production build 0.69.0 2024