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 `fep-e232` feature flag (disabled by default).
|
||||||
- Added `account_index` parameter to Monero configuration.
|
- Added `account_index` parameter to Monero configuration.
|
||||||
|
|
||||||
|
### Changed
|
||||||
|
|
||||||
|
- Documented valid role names for `set-role` command.
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|
||||||
- Make webclient-to-object redirects work for remote profiles and posts.
|
- 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>
|
mitractl set-password <user-id> <password>
|
||||||
```
|
```
|
||||||
|
|
||||||
Change user's role:
|
Change user's role (admin, user or read_only_user).
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
mitractl set-role <user-id> <role-name>
|
mitractl set-role <user-id> <role-name>
|
||||||
|
|
|
@ -187,6 +187,7 @@ impl SetPassword {
|
||||||
#[derive(Parser)]
|
#[derive(Parser)]
|
||||||
pub struct SetRole {
|
pub struct SetRole {
|
||||||
id: Uuid,
|
id: Uuid,
|
||||||
|
#[clap(value_parser = ["admin", "user", "read_only_user"])]
|
||||||
role: String,
|
role: String,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue