Skip to main content

restriction_grant

Function restriction_grant 

pub fn restriction_grant(
    workspace: &str,
    person: &str,
    until_ms: u64,
    granted_by: Subject,
) -> Grant
Expand description

The grant that stops person changing anything in workspace until until_ms (Unix milliseconds, exclusive): undoable changes and outside effects denied on the whole workspace, reading left alone. It lapses by itself, so a temporary restriction needs nobody to come back and lift it.