Return Result<(), dispatchError> instead of bool for all allowance check callbacks
list of allowance check callbacks:
- EnsureIdtyCallAllowed
- IsCertAllowed
- IsIdtyAllowedToRequestMembership
- IsIdtyAllowedToClaimMembership
- IsIdtyAllowedToRenewMembership
TODO:
-
Merge all membership callback in one trait. -
Remove generic errors returned when theses callback return false (throw the inner error instead)