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

This commit is contained in:
Jimmy Praet authored and GitHub committed 2022-04-30 15:00:14 +02:00
1 parent 0d196e29e8
commit 7c0bf06d96
17 files changed
+169 -84

No files matched your search

+1
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)"`
}