Skip to content

[5.6] Refactor Product and Variant query editability options#4214

Draft
lukeholder wants to merge 4 commits into5.6from
feature/product-query-editable-savable
Draft

[5.6] Refactor Product and Variant query editability options#4214
lukeholder wants to merge 4 commits into5.6from
feature/product-query-editable-savable

Conversation

@lukeholder
Copy link
Member

Description

  • Added craft\commerce\elements\db\ProductQuery::$savable.
  • Added craft\commerce\elements\db\ProductQuery::savable().
  • Added craft\commerce\elements\db\VariantQuery::$savable.
  • Added craft\commerce\elements\db\VariantQuery::savable().
  • Added craft\commerce\elements\db\VariantQuery::editable().
  • craft\commerce\elements\db\ProductQuery::$editable is now nullable.
  • craft\commerce\elements\db\VariantQuery::$editable is now nullable.

In preparation for new permissions view and save permissions we have refactored the auth method in the product and variant queries.

@lukeholder lukeholder changed the title Refactor Product and Variant query editability options [5.6] Refactor Product and Variant query editability options Jan 28, 2026
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.

1 participant