Document valid role names for set-role command
This commit is contained in:
parent
fcf63ff317
commit
b80b827fde
3 changed files with 6 additions and 1 deletions
|
@ -11,6 +11,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
|||
- Added `fep-e232` feature flag (disabled by default).
|
||||
- Added `account_index` parameter to Monero configuration.
|
||||
|
||||
### Changed
|
||||
|
||||
- Documented valid role names for `set-role` command.
|
||||
|
||||
### Fixed
|
||||
|
||||
- Make webclient-to-object redirects work for remote profiles and posts.
|
||||
|
|
|
@ -38,7 +38,7 @@ Set or change password:
|
|||
mitractl set-password <user-id> <password>
|
||||
```
|
||||
|
||||
Change user's role:
|
||||
Change user's role (admin, user or read_only_user).
|
||||
|
||||
```shell
|
||||
mitractl set-role <user-id> <role-name>
|
||||
|
|
|
@ -187,6 +187,7 @@ impl SetPassword {
|
|||
#[derive(Parser)]
|
||||
pub struct SetRole {
|
||||
id: Uuid,
|
||||
#[clap(value_parser = ["admin", "user", "read_only_user"])]
|
||||
role: String,
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue