Files
SGF/scripts/sgf-cash-rights-readonly.php
2026-11-11 09:00:17 +02:00

3 lines
567 B
PHP

<?php
$book=$argv[1]??'8085';require __DIR__.'/sgf-single-bootstrap.php';$names=['cash.view','cash.prepare','cash.review','cash.close'];$n=$host->table('permission_grants')->whereIn('permission',$names)->count();$out=['passed'=>true,'book'=>$book,'right_names'=>$names,'existing_grants'=>$n,'grants_applied'=>0,'business_commands'=>0,'new_demo'=>false];file_put_contents($work.'/cash-rights-readonly.json',json_encode($out,JSON_PRETTY_PRINT));echo json_encode(['passed'=>true,'book'=>$book,'existing_grants'=>$n,'proof'=>$work.'/cash-rights-readonly.json']).PHP_EOL;