Skip to content

Commit 15f8eb7

Browse files
committed
only allow root to close proposals
1 parent d4d8182 commit 15f8eb7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pallets/collective/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -665,7 +665,7 @@ pub mod pallet {
665665
proposal_weight_bound: Weight,
666666
#[pallet::compact] length_bound: u32,
667667
) -> DispatchResultWithPostInfo {
668-
let _ = ensure_signed(origin)?;
668+
ensure_root(origin)?;
669669

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

0 commit comments

Comments
 (0)