Skip to content

Fixed #17404 - Prevent bulk checkout of assets across companies#17887

Merged
snipe merged 14 commits intogrokability:developfrom
marcusmoore:fixes/17404-prevent-bulk-checkout-across-companies
Sep 22, 2025
Merged

Fixed #17404 - Prevent bulk checkout of assets across companies#17887
snipe merged 14 commits intogrokability:developfrom
marcusmoore:fixes/17404-prevent-bulk-checkout-across-companies

Conversation

@marcusmoore
Copy link
Copy Markdown
Collaborator

@marcusmoore marcusmoore commented Sep 17, 2025

Currently, with Full Multiple Companies Support enabled it is possible to check out an asset that belongs to a company to a user of another company when it is selected as part of a bulk checkout:

CleanShot.2025-09-18.at.16.58.40.mp4

With this PR that action is blocked and the user is presented with an error message "Error: One or more of the checkout target company and asset company do not match":

CleanShot.2025-09-18.at.17.01.10.mp4

Fixes #17404

@marcusmoore marcusmoore marked this pull request as ready for review September 19, 2025 00:02
@marcusmoore marcusmoore requested a review from snipe as a code owner September 19, 2025 00:02
@marcusmoore marcusmoore changed the title WIP: Disallow bulk checkout of assets across companies Fixed #17404 - Disallow bulk checkout of assets across companies Sep 19, 2025
…companies

# Conflicts:
#	app/Http/Controllers/Assets/BulkAssetsController.php
#	tests/Feature/Checkouts/Ui/BulkAssetCheckoutTest.php
@marcusmoore
Copy link
Copy Markdown
Collaborator Author

Merge conflicts handled.

@snipe snipe merged commit 8a46579 into grokability:develop Sep 22, 2025
6 of 7 checks passed
@marcusmoore marcusmoore deleted the fixes/17404-prevent-bulk-checkout-across-companies branch September 22, 2025 17:58
@snipe
Copy link
Copy Markdown
Member

snipe commented Sep 22, 2025

I think another improvement might be pulling them out of the form itself, OR letting the show up in the bulk list but as disabled (and perhaps in red or with an error icon) so people can manually delete those before submitting.

@marcusmoore marcusmoore changed the title Fixed #17404 - Disallow bulk checkout of assets across companies Fixed #17404 - Prevent bulk checkout of assets across companies Sep 22, 2025
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