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

don't trigger permissionFailure when it's not needed #533

Merged
merged 1 commit into from
Aug 17, 2023

Conversation

lekoala
Copy link
Contributor

@lekoala lekoala commented Aug 16, 2023

Fixes #529

LeftAndMain already has a canView check that will use under the hood the alternateAccessCheck
Not trigger the permissionFailure allows proper handling of the error instead of showing a ever loading logo in admin v5

@GuySartorelli
Copy link
Member

My understanding is that the underlying issue this aims to fix is a problem for CMS 4 as well - please retarget this PR to the 2.8 branch so that we can resolve the issue for both major releases.

@lekoala lekoala changed the base branch from 3 to 2.8 August 17, 2023 04:43
@lekoala
Copy link
Contributor Author

lekoala commented Aug 17, 2023

done

Copy link
Member

@GuySartorelli GuySartorelli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, very elegant and works great. Thank you for contributing this!

@GuySartorelli GuySartorelli merged commit 7d1431d into silverstripe:2.8 Aug 17, 2023
11 checks passed
@GuySartorelli
Copy link
Member

This change will be automatically tagged once CI has finished running on the branch, and will be automatically merged up to and tagged in 3.0 some time after that (on a cron).

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