Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Preview Button for Pages with Live Content not working for some user roles #3481

Open
juliankehne opened this issue Mar 4, 2025 · 5 comments
Assignees
Labels
bug Something isn't working question Further information is requested

Comments

@juliankehne
Copy link

juliankehne commented Mar 4, 2025

Describe the Bug

Affected user roles = author, editor, observer or manager

Only affects the preview button when editing/creating a page.
The preview button on the page tree does work when there is embedded content.

As a user with one of the above user roles, when you open a page view that has live content embedded, the preview button is unresponsive. Same issue applies when creating a new page for the roles and embedding live content.

The cms-team role and service team role can open a preview without live content embedded. (I haven't tested the other Integreat Team Member roles).

Steps to Reproduce

Editing a page:

  1. Login as author, editor, observer or manager
  2. Go to 'Pages'
  3. Open a page with Live Content from another region embedded
  4. Click the 'Preview' button
  5. See that the button is unresponsive

Creating a page:

  1. Login as author, editor or manager with experienced user role
  2. Go to 'Pages'
  3. Create a new page
  4. Embed live content from another region
  5. Click the 'Preview' button
  6. See that the button is unresponsive

Expected Behavior

Preview opens and is shown correctly to the user.

Actual Behavior

The Preview button is unresponsive and no preview opens.

Additional Information

Traceback

Related Issues

@juliankehne juliankehne added the bug Something isn't working label Mar 4, 2025
@JoeyStk
Copy link
Contributor

JoeyStk commented Mar 4, 2025

Thank you for reporting this issue. I noticed this issue while working on #495. @jarlhengstmengel could you please check if we fix this issue during the refactoring of the page tree? :)

@jarlhengstmengel
Copy link
Contributor

jarlhengstmengel commented Mar 4, 2025

Thank you for reporting this issue. I noticed this issue while working on #495. @jarlhengstmengel could you please check if we fix this issue during the refactoring of the page tree? :)

I could reproduce it in the refactoring page tree branch, but only when creating a new page and embedding live content. I got a PermissionDenied exception in the console. Editing a page and clicking preview wasn't a problem. When switching to the develop branch I could also reproduce the bug while editing a page

@jarlhengstmengel jarlhengstmengel self-assigned this Mar 4, 2025
@JoeyStk JoeyStk added the ready This issue is ready to be worked on label Mar 4, 2025
@jarlhengstmengel
Copy link
Contributor

I updated the description how to reproduce this bug. I could only reproduce it with live content from other then the current region. I reproduced the bug completely on the Refactoring Page Tree branch. The refactoring is definitely not solving the bug.

@jarlhengstmengel
Copy link
Contributor

I have a bit of a fundamental question, is it intended that all user groups from above are allowed to embed content from other regions?

@jarlhengstmengel jarlhengstmengel added question Further information is requested and removed ready This issue is ready to be worked on labels Mar 7, 2025
@juliankehne
Copy link
Author

I have a bit of a fundamental question, is it intended that all user groups from above are allowed to embed content from other regions?

Excluding observer all of them are able to if they have the 'experienced user' permission turned on.
I don't know anything else though, I can't find any old first issues to Live Content and how it should work, maybe I'm searching for the wrong words.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants