Respect DefaultUserIsRestricted system default when creating new user (#19310 ) (#19560)

This commit is contained in:
Jimmy Praet 2022-04-30 15:00:14 +02:00 committed by GitHub
parent 0d196e29e8
commit 7c0bf06d96
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
17 changed files with 169 additions and 84 deletions

View file

@ -19,6 +19,7 @@ type CreateUserOption struct {
Password string `json:"password" binding:"Required;MaxSize(255)"`
MustChangePassword *bool `json:"must_change_password"`
SendNotify bool `json:"send_notify"`
Restricted *bool `json:"restricted"`
Visibility string `json:"visibility" binding:"In(,public,limited,private)"`
}