Skip to content

Commit

Permalink
Core-Fellowship: fix origin typo (paritytech#14179)
Browse files Browse the repository at this point in the history
  • Loading branch information
muharem authored and nathanwhit committed Jul 19, 2023
1 parent 0e704cc commit 8f95a3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frame/core-fellowship/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ pub mod pallet {
who: T::AccountId,
at_rank: RankOf<T, I>,
) -> DispatchResult {
match T::PromoteOrigin::try_origin(origin) {
match T::ApproveOrigin::try_origin(origin) {
Ok(allow_rank) => ensure!(allow_rank >= at_rank, Error::<T, I>::NoPermission),
Err(origin) => ensure_root(origin)?,
}
Expand Down

0 comments on commit 8f95a3a

Please sign in to comment.