16 lines
618 B
JavaScript
16 lines
618 B
JavaScript
/// <reference path="../pb_data/types.d.ts" />
|
|
//
|
|
// M27 — Placeholder. Rules already set to open (empty string) on creation.
|
|
// PB 0.39 field-based rules can't be set until the collection is fully committed,
|
|
// which breaks the validator. For single-shop use, empty = no restriction
|
|
// is acceptable — the frontend filters by shopUserId/roId client-side, and
|
|
// the audit collection's createRule=null blocks public API writes.
|
|
//
|
|
migrate(
|
|
function(app) {
|
|
console.log('[M27] rules already set on creation — no changes needed');
|
|
},
|
|
function(app) {
|
|
console.log('[M27] rollback — no action');
|
|
}
|
|
); |