b39168205ce8b43b7524f5f52ca49ee80e930fb6
评审 R=1(Approved,Critical 0 / Important 0 / Minor 5)⇒ 实现逻辑零改动, 只补 3 条测试钉子: - soft_deleted_role_relation_still_counts / soft_deleted_user_relation_still_counts:钉住「只有 base_authorize 过滤 f_delete_mark=0,两张关系表不过滤」(契约 §8.1 / brief S14) - non_module_item_type_does_not_grant:钉住 base_authorize.f_item_type='module' - db_error_denies_instead_of_allowing(扩展):base_module 被 DROP 的那段时间里 管理员仍放行 ⇒ 钉住「管理员在任何 SQL 之前短路」 permission.rs 仅给 MAX_TREE_DEPTH 补注释(防御性上限,react 无此概念)。 Co-Authored-By: Claude Code <[email protected]>
Languages
Shell
31.1%
Rust
25.7%
Python
18.5%
TypeScript
15.3%
Java
7.6%
Other
1.8%