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:
@@ -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: '' },
|
||||
|
||||
Reference in New Issue
Block a user