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

Use align-items: center instead of .m12 #2

Merged

Conversation

leofeyer
Copy link

No description provided.

@zoglo
Copy link
Owner

zoglo commented May 17, 2024

Been busy the past week @leofeyer, thank u <3

@zoglo zoglo merged commit 00c3545 into zoglo:feature/grid-widget-backend May 17, 2024
@leofeyer leofeyer deleted the feature/widget-grid branch May 21, 2024 09:05
zoglo pushed a commit that referenced this pull request May 23, 2024
…licating a page (see contao#7102)

Description
-----------

If a user who is not an admin copies a page, the articles (and thus all content) are no longer copied, as it was the case in Contao 4. Instead a new empty article is created.
This is because the check whether the user is allowed to create the articles depends on the pagemountCache in the BackendAccessVoter, which is only set once per request and user. 
As the page does not yet exist when the cache is first set and has not been reset after the page has been created, the check as to whether the user is allowed to access the newly created page fails.

This PR adds a check if a new page has been created before accessing the pagemountCache in the BackendAccessVoter and clears the cache if this is the case.


Steps to reproduce:

1. Login as a user without admin privileges
2. Copy and paste a page that has content elements in its article
3. The original article(s) will not be copied but a new one will be created

Commits
-------

45f2cbb Change pagemountCache structure in BackendAccessVoter
5257361 Store true/false in the pagemountsCache
c53c4e1 Merge pull request #1 from aschempp/fix/page-access
f30b8f0 Merge pull request #2 from lukasbableck/5.3
ed3f337 run rector
479dad1 run ecs fix
0c3bba2 Revert "Change pagemountCache structure in BackendAccessVoter"
d031b28 check if page is in pagemountsCache and rebuild cache if not before r…

Co-authored-by: aschempp <andreas.schempp@terminal42.ch>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants