diff options
| author | Santo Cariotti <santo@dcariotti.me> | 2022-10-17 06:49:19 +0000 |
|---|---|---|
| committer | Santo Cariotti <santo@dcariotti.me> | 2022-10-17 06:49:47 +0000 |
| commit | fe197dcb81564d99cb1297dd8417299ae3bfc91e (patch) | |
| tree | 3ae329b12ec42cd4ad4c0f257e67185712c61695 /src/models | |
| parent | 346dc0f85a02c5352767e1ca7de57c96df4c39f6 (diff) | |
Staffers can update user `is_staff` status
Diffstat (limited to 'src/models')
| -rw-r--r-- | src/models/user.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/models/user.rs b/src/models/user.rs index 0aaa730..fe6fb64 100644 --- a/src/models/user.rs +++ b/src/models/user.rs @@ -31,6 +31,7 @@ pub struct UserEdit { pub name: String, pub email: String, pub username: String, + pub is_staff: Option<bool>, } /// Response used to print a user (or a users list) |
