Skip to main content

warn_unless_capable

Function warn_unless_capable 

Source
pub fn warn_unless_capable(root: &Path, required: Capability) -> bool
Expand description

Check whether the current user has a management capability. Prints a warning to stderr if denied or not registered. Blocks AI members from manage-level actions entirely. Returns true if allowed, false if denied.