Skip to content
Snippets Groups Projects
Unverified Commit c5d6c8e5 authored by bgallois's avatar bgallois
Browse files

fix #291

parent eabdadca
No related branches found
No related tags found
No related merge requests found
Pipeline #39944 failed
......@@ -485,14 +485,14 @@ pub mod pallet {
}
/// Check if member is incoming.
fn is_incoming(member_id: &T::MemberId) -> bool {
pub fn is_incoming(member_id: &T::MemberId) -> bool {
IncomingAuthorities::<T>::get()
.binary_search(member_id)
.is_ok()
}
/// C&heck if member is online.
fn is_online(member_id: &T::MemberId) -> bool {
/// Check if member is online.
pub fn is_online(member_id: &T::MemberId) -> bool {
OnlineAuthorities::<T>::get()
.binary_search(member_id)
.is_ok()
......
......@@ -178,7 +178,8 @@ impl<
for OwnerKeyChangePermissionHandler<Runtime>
{
fn check_allowed(idty_index: &IdtyIndex) -> bool {
!pallet_authority_members::Pallet::<Runtime>::online().contains(idty_index)
!pallet_authority_members::Pallet::<Runtime>::is_online(idty_index)
&& !pallet_authority_members::Pallet::<Runtime>::is_incoming(idty_index)
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment