pallet-sudo: Accept Root origin as valid sudo (#2783)

This changes `pallet-sudo` to also accept `Root` origin for
`ensure_sudo`. This can be useful for parachains who allow the relay
chain to have superuser rights to setup the sudo pallet for example.
This commit is contained in:
Bastian Köcher
2023-12-22 09:58:32 +01:00
committed by GitHub
parent 46dd4b8f53
commit 96bec7a7ab
3 changed files with 32 additions and 4 deletions
+12
View File
@@ -0,0 +1,12 @@
title: "Accept Root origin as valid sudo"
doc:
- audience: Runtime User
description: |
Dispatchables of `pallet-sudo` will now also accept the `Root` origin
as valid `sudo` origin. This enhancement is useful for parachains that
allow the relay chain as a superuser. It enables the relay chain to send
an XCM message to initialize the sudo key.
crates:
- name: "pallet-sudo"