-
Notifications
You must be signed in to change notification settings - Fork 799
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information
Showing
3 changed files
with
33 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters