Skip to content
Snippets Groups Projects

fix(wot): cannot certify self

Merged Pascal Engélibert requested to merge cannot-certify-self into master
All threads resolved!
Files
2
@@ -158,6 +158,9 @@ impl<T: Config<I>, I: 'static> pallet_certification::traits::IsCertAllowed<IdtyI
for Pallet<T, I>
{
fn is_cert_allowed(issuer: IdtyIndex, receiver: IdtyIndex) -> bool {
if issuer == receiver {
return false;
}
if let Some(issuer_data) = pallet_identity::Pallet::<T>::identity(issuer) {
if issuer_data.status != IdtyStatus::Validated {
return false;
Loading