fn controller_check( proof_verifies: bool, signature_verifies: bool, perm: AuthRequired, ) -> Result<bool, String>