Skip to content

Commit 07d4eea

Browse files
committed
only allow root to close proposals
1 parent bf6896f commit 07d4eea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pallets/collective/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -666,7 +666,7 @@ pub mod pallet {
666666
proposal_weight_bound: Weight,
667667
#[pallet::compact] length_bound: u32,
668668
) -> DispatchResultWithPostInfo {
669-
let _ = ensure_signed(origin)?;
669+
ensure_root(origin)?;
670670

671671
Self::do_close(proposal_hash, index, proposal_weight_bound, length_bound)
672672
}

0 commit comments

Comments
 (0)