@davoodmehraban89 / Factor-easy / commits / 29427a7
Fork 0

سامانه صدور فاکتور و حسابداری

chore: bind C8 checks to applied migration version

davoodmehraban89 committed Oct 1, 2026 at 21:10 UTC 29427a76e93adc3e61cec796378a87ea256e7a58
1 file changed +1 -1
scripts/office-slice-c8-check.mjs
+1 -1
@@ -6,7 +6,7 @@ if(/\.innerHTML\s*=/.test(src))throw new Error('C8 UI must not render workflow c
6 if(!src.includes("['edit','refer','approve']"))throw new Error('C8 capability allowlist drift');
7 if(!src.includes('مرحله گردش، جایگزین ثبت دبیرخانه یا تأیید داخلی نامه نیست.'))throw new Error('C8 status/workflow separation notice missing');
8
9 -const migrationPath='supabase/migrations/20261001173125_office_slice_c8_workflow_policy.sql';
9 +const migrationPath='supabase/migrations/20261001173917_office_slice_c8_workflow_policy.sql';
10 if(!fs.existsSync(migrationPath))throw new Error('C8 workflow policy migration missing');
11 const sql=fs.readFileSync(migrationPath,'utf8');
12 for(const token of [