From d26340badd0f44dd9092d745571b971890b75e63 Mon Sep 17 00:00:00 2001 From: librelois <c@elo.tf> Date: Thu, 9 Jun 2022 22:18:22 +0200 Subject: [PATCH] fix(runtimes):security: pallet scheduler should not be used by end users --- runtime/common/src/pallets_config.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/common/src/pallets_config.rs b/runtime/common/src/pallets_config.rs index d7407081c..e5f1097c3 100644 --- a/runtime/common/src/pallets_config.rs +++ b/runtime/common/src/pallets_config.rs @@ -91,7 +91,7 @@ macro_rules! pallets_config { type PalletsOrigin = OriginCaller; type Call = Call; type MaximumWeight = MaximumSchedulerWeight; - type ScheduleOrigin = frame_system::EnsureSigned<AccountId>; + type ScheduleOrigin = EnsureRoot<AccountId>; type OriginPrivilegeCmp = EqualPrivilegeOnly; type MaxScheduledPerBlock = MaxScheduledPerBlock; type WeightInfo = pallet_scheduler::weights::SubstrateWeight<Runtime>; -- GitLab