Skip to main content

files_hint

Function files_hint 

Source
pub fn files_hint(
    state: LifecycleState,
    locked_by: Option<Uuid>,
    me: Uuid,
    editable: bool,
    can_work: bool,
    can_revise: bool,
) -> FilesHint
Expand description

editable: the user holds the check-out and may modify (the rule of ensure_editable); can_work: the user may check out (project group, role, revision in work, not locked by someone else).