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

Respect single Paragraphs type permissions in modal dialog #156

Open
olafgrabienski opened this issue Jul 14, 2023 · 1 comment
Open

Respect single Paragraphs type permissions in modal dialog #156

olafgrabienski opened this issue Jul 14, 2023 · 1 comment

Comments

@olafgrabienski
Copy link
Member

olafgrabienski commented Jul 14, 2023

As far as I can tell, the (experimental) modal dialog on the front end is only available for people with full permissions for the respective Paragraphs type. E.g., if I don't have the permission to delete content of a certain Paragraphs type, I don't have access to the modal dialog at all (and can't edit the Paragraph via the dialog).

I'd prefer a behavior where the dialog reflects the single Paragraphs type permissions, so that I have access to the dialog and can choose only actions which are allowed for my role. Example: I can't choose the "Remove" button but I'm still able to edit the Paragraph.

@laryn
Copy link
Member

laryn commented Jul 26, 2023

@olafgrabienski I agree with your preference but haven't worked on it recently enough to say how big of a change will be required. I know there is already some level of checking happening (e.g. if un/publishing is allowed, show that in the dropdown, otherwise not) but it may need further tweaking.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants