Migrate PrestaShop config to Config API blocks and add permissions.

Replace custom ShopConfig pages/models with registerConfigBlocks, load config from Config store, and enforce RBAC on methods.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
fatequod
2026-07-22 12:20:30 +02:00
co-authored by Cursor
parent 139ac5cb52
commit 5a1e6ffbdd
27 changed files with 341 additions and 1206 deletions
+2 -1
View File
@@ -1,7 +1,8 @@
const { DB } = require('@orbito/api-lib');
const schema = new DB.Schema('ps_orders', {
shopConfigId: { type: 'ObjectId' },
// Identyfikator sklepu z Config (SHOP_ID = 'default'); wcześniej ObjectId z ShopConfig.
shopConfigId: { type: 'string' },
psOrderId: { type: 'number' },
orbitoOrderId: { type: 'ObjectId', optional: true },
reference: { type: 'string', optional: true, default: '' },