pub fn ensure_authorized<OuterOrigin, AccountId>( o: OuterOrigin, ) -> Result<(), BadOrigin>where OuterOrigin: Into<Result<RawOrigin<AccountId>, OuterOrigin>>,
Ensure that the origin o represents an extrinsic with authorized call. Returns Ok or an Err otherwise.
o
Ok
Err