Function allows_edit

Source
pub fn allows_edit(cid: &str, res: &str, data: &Map<String, Value>) -> bool