Skip to main content

ensure_project_access

Function ensure_project_access 

Source
pub fn ensure_project_access(rev: &Revision, actor: &Actor) -> AppResult<()>
Expand description

Fails unless actor may change data of the revision’s project: CAD editor (or admin) and member of the item’s project group. A revision the actor may not even read answers “not found”, so the message below (which names the group) never reaches outsiders of restricted groups.