Skip to main content

allow

Function allow 

Source
pub fn allow(
    store: &Store,
    id: &str,
    setting: &str,
    who: &str,
) -> Result<(), String>
Expand description

Lets setting read entry id, recorded under who: the person’s choice in Settings, or AgentMux’s own move of a key that sat in the file. Only an api-key entry, and only for a setting that is on the list. One entry per setting: the setting’s grant comes off every other entry, each removal recorded under who.