From 5e4f39f5be59f591e33348f1b3cd218ce40419eb Mon Sep 17 00:00:00 2001 From: Xavier Lau Date: Thu, 20 Jul 2023 14:04:49 +0800 Subject: [PATCH] Tighten permissions --- runtime/crab/src/pallets/treasury.rs | 4 ++-- runtime/darwinia/src/pallets/treasury.rs | 4 ++-- runtime/pangolin/src/pallets/treasury.rs | 4 ++-- runtime/pangoro/src/pallets/treasury.rs | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/runtime/crab/src/pallets/treasury.rs b/runtime/crab/src/pallets/treasury.rs index b99147d44..a61441a78 100644 --- a/runtime/crab/src/pallets/treasury.rs +++ b/runtime/crab/src/pallets/treasury.rs @@ -27,7 +27,7 @@ frame_support::parameter_types! { // In order to use `Tips`, which bounded by `pallet_treasury::Config` rather // `pallet_treasury::Config` Still use `DefaultInstance` here instead `Instance1` impl pallet_treasury::Config for Runtime { - type ApproveOrigin = RootOrAtLeastThreeFifth; + type ApproveOrigin = Root; type Burn = (); type BurnDestination = (); type Currency = Balances; @@ -37,7 +37,7 @@ impl pallet_treasury::Config for Runtime { type ProposalBond = ProposalBond; type ProposalBondMaximum = (); type ProposalBondMinimum = ConstU128; - type RejectOrigin = RootOrMoreThanHalf; + type RejectOrigin = RootOrAll; type RuntimeEvent = RuntimeEvent; type SpendFunds = (); type SpendOrigin = frame_support::traits::NeverEnsureOrigin; diff --git a/runtime/darwinia/src/pallets/treasury.rs b/runtime/darwinia/src/pallets/treasury.rs index 89be7895a..7aac1a6f9 100644 --- a/runtime/darwinia/src/pallets/treasury.rs +++ b/runtime/darwinia/src/pallets/treasury.rs @@ -27,7 +27,7 @@ frame_support::parameter_types! { // In order to use `Tips`, which bounded by `pallet_treasury::Config` rather // `pallet_treasury::Config` Still use `DefaultInstance` here instead `Instance1` impl pallet_treasury::Config for Runtime { - type ApproveOrigin = RootOrAtLeastThreeFifth; + type ApproveOrigin = Root; type Burn = (); type BurnDestination = (); type Currency = Balances; @@ -37,7 +37,7 @@ impl pallet_treasury::Config for Runtime { type ProposalBond = ProposalBond; type ProposalBondMaximum = (); type ProposalBondMinimum = ConstU128; - type RejectOrigin = RootOrMoreThanHalf; + type RejectOrigin = RootOrAll; type RuntimeEvent = RuntimeEvent; type SpendFunds = (); type SpendOrigin = frame_support::traits::NeverEnsureOrigin; diff --git a/runtime/pangolin/src/pallets/treasury.rs b/runtime/pangolin/src/pallets/treasury.rs index 89be7895a..7aac1a6f9 100644 --- a/runtime/pangolin/src/pallets/treasury.rs +++ b/runtime/pangolin/src/pallets/treasury.rs @@ -27,7 +27,7 @@ frame_support::parameter_types! { // In order to use `Tips`, which bounded by `pallet_treasury::Config` rather // `pallet_treasury::Config` Still use `DefaultInstance` here instead `Instance1` impl pallet_treasury::Config for Runtime { - type ApproveOrigin = RootOrAtLeastThreeFifth; + type ApproveOrigin = Root; type Burn = (); type BurnDestination = (); type Currency = Balances; @@ -37,7 +37,7 @@ impl pallet_treasury::Config for Runtime { type ProposalBond = ProposalBond; type ProposalBondMaximum = (); type ProposalBondMinimum = ConstU128; - type RejectOrigin = RootOrMoreThanHalf; + type RejectOrigin = RootOrAll; type RuntimeEvent = RuntimeEvent; type SpendFunds = (); type SpendOrigin = frame_support::traits::NeverEnsureOrigin; diff --git a/runtime/pangoro/src/pallets/treasury.rs b/runtime/pangoro/src/pallets/treasury.rs index 89be7895a..7aac1a6f9 100644 --- a/runtime/pangoro/src/pallets/treasury.rs +++ b/runtime/pangoro/src/pallets/treasury.rs @@ -27,7 +27,7 @@ frame_support::parameter_types! { // In order to use `Tips`, which bounded by `pallet_treasury::Config` rather // `pallet_treasury::Config` Still use `DefaultInstance` here instead `Instance1` impl pallet_treasury::Config for Runtime { - type ApproveOrigin = RootOrAtLeastThreeFifth; + type ApproveOrigin = Root; type Burn = (); type BurnDestination = (); type Currency = Balances; @@ -37,7 +37,7 @@ impl pallet_treasury::Config for Runtime { type ProposalBond = ProposalBond; type ProposalBondMaximum = (); type ProposalBondMinimum = ConstU128; - type RejectOrigin = RootOrMoreThanHalf; + type RejectOrigin = RootOrAll; type RuntimeEvent = RuntimeEvent; type SpendFunds = (); type SpendOrigin = frame_support::traits::NeverEnsureOrigin;