Skip to main content

write_restricted

Function write_restricted 

Source
pub fn write_restricted(
    schema: &Schema,
    ctx: Option<&Context>,
) -> Result<bool, String>
Expand description

该 schema 本次写是否受 accessKeys 管控(ctx=None / internal / 全部 bypass / write=None → false)。

缺清单键 / 清单非数组 → 显式 Err(fail closed);清单: [] 亦返回 true (写全拒由各 validate_* 给出「清单为空」错误)。