referrerpolicy=no-referrer-when-downgrade

Function ensure_authorized

pub fn ensure_authorized<OuterOrigin, AccountId>(
    o: OuterOrigin,
) -> Result<(), BadOrigin>
where OuterOrigin: Into<Result<RawOrigin<AccountId>, OuterOrigin>>,
Expand description

Ensure that the origin o represents an extrinsic with authorized call. Returns Ok or an Err otherwise.