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

FIX Check canArchive() permission instead of canDelete() #315

Merged

Conversation

emteknetnz
Copy link
Member

Issue #291

Comment on lines 573 to 575
// note there isn't a canDelete() test here because it seems impossible to get an
// unversioned Link because there's no way to actually remove the Versioned extension
// from any subclass of Link since we're unable to the use app/_config.php method
Copy link
Member

Choose a reason for hiding this comment

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

Why can't you just use MyLinkSubclass::remove_extension(Versioned::class); in the test?

Copy link
Member Author

Choose a reason for hiding this comment

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

Updated

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.

LGTM

@GuySartorelli GuySartorelli merged commit 04c0dab into silverstripe:4.0 Aug 7, 2024
14 checks passed
@GuySartorelli GuySartorelli deleted the pulls/4.0/can-archive branch August 7, 2024 02:48
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

Successfully merging this pull request may close these issues.

2 participants