pub(crate) fn upsert(
state: &AppState,
agent: &str,
sites: &[String],
powers: &[String],
wildcard_ok: bool,
) -> Result<Row, String>Expand description
Add a row, or change the powers of the one for this agent and site. The caller has checked that the person is the one asking. A changed row ends the pane grants made from it, which are made again from the new row on the agent’s next call.