diff options
author | Jimmy Praet <jimmy.praet@telenet.be> | 2022-04-30 15:00:14 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-30 15:00:14 +0200 |
commit | 7c0bf06d968444533b73a786fbb84c0546c8c25f (patch) | |
tree | 8958e3c18b44882aa90433a43a1fbba52f418d71 /modules | |
parent | 0d196e29e8e4ec999262197439927b0a315e0ba0 (diff) | |
download | gitea-7c0bf06d968444533b73a786fbb84c0546c8c25f.tar.gz gitea-7c0bf06d968444533b73a786fbb84c0546c8c25f.zip |
Respect DefaultUserIsRestricted system default when creating new user (#19310 ) (#19560)
Diffstat (limited to 'modules')
-rw-r--r-- | modules/structs/admin_user.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/structs/admin_user.go b/modules/structs/admin_user.go index facf16a395..eccbf29a46 100644 --- a/modules/structs/admin_user.go +++ b/modules/structs/admin_user.go @@ -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)"` } |