Skip to main content

granted

Function granted 

Source
pub async fn granted<A: MemberArea<Principal = Permitted>>(
    app: &TestApp,
    permissions: &[&str],
) -> TestPrincipal<A>
Expand description

A new member of the Permitted area A whose role holds exactly permissions, written directly, so A needs no sign-up; act as it with app.as_(&principal).