diff options
author | 6543 <6543@obermui.de> | 2024-02-23 03:18:33 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-23 02:18:33 +0000 |
commit | 7fbdb60fc1152acc9a040dc04b1b0f5a3475b081 (patch) | |
tree | 9976167d5b05ad1677606bce409d92e83d17a4de /routers/web/admin | |
parent | b748d62b461f9f23823f8772bc708b44b15a23a7 (diff) | |
download | gitea-7fbdb60fc1152acc9a040dc04b1b0f5a3475b081.tar.gz gitea-7fbdb60fc1152acc9a040dc04b1b0f5a3475b081.zip |
Start to migrate from `util.OptionalBool` to `optional.Option[bool]` (#29329)
just create transition helper and migrate two structs
Diffstat (limited to 'routers/web/admin')
-rw-r--r-- | routers/web/admin/users.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/web/admin/users.go b/routers/web/admin/users.go index af184fa9eb..adb9799c01 100644 --- a/routers/web/admin/users.go +++ b/routers/web/admin/users.go @@ -140,7 +140,7 @@ func NewUserPost(ctx *context.Context) { } overwriteDefault := &user_model.CreateUserOverwriteOptions{ - IsActive: util.OptionalBoolTrue, + IsActive: optional.Some(true), Visibility: &form.Visibility, } |