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

Einschränkung der Inhaltselemente wird nicht berücksichtigt #69

Open
aschempp opened this issue May 22, 2024 · 2 comments
Open

Einschränkung der Inhaltselemente wird nicht berücksichtigt #69

aschempp opened this issue May 22, 2024 · 2 comments
Assignees
Labels

Comments

@aschempp
Copy link

In den Berechtigungen lassen sich ja Inhaltselemente für den Frontend Helper einschränken. Mein Benutzer hat aber bereits generell Elemente in Contao eingeschränkt – es wäre gut/sinnvoll wenn diese auch übernommen werden. Aktuell kann er beim Inhaltselement "Modul" im Frontend Helper auf «bearbeiten» klicken und bekommt dann (korrekterweise) einen Forbidden Fehler.

@ausi ausi added the bug label May 24, 2024
@ausi ausi self-assigned this May 24, 2024
@ausi
Copy link
Member

ausi commented Feb 17, 2025

For this we would need to check for ->isGranted(ContaoCorePermissions::USER_CAN_ACCESS_ELEMENT_TYPE, $type) in the frontend scope for the backend user.
Is that possible?
If so, how?

@aschempp
Copy link
Author

No that is not possible, you cannot vote on backend permissions in the front end. But I assume you currently somehow check if users can access articles at all before rendering the editing functionality for them?

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

No branches or pull requests

2 participants