We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6e2dacf commit bdba894Copy full SHA for bdba894
cmd/admin.go
@@ -21,6 +21,7 @@ import (
21
pwd "code.gitea.io/gitea/modules/password"
22
repo_module "code.gitea.io/gitea/modules/repository"
23
"code.gitea.io/gitea/modules/setting"
24
+ "code.gitea.io/gitea/modules/storage"
25
26
"github.com/urfave/cli"
27
)
@@ -489,6 +490,10 @@ func runDeleteUser(c *cli.Context) error {
489
490
return err
491
}
492
493
+ if err := storage.Init(); err != nil {
494
+ return err
495
+ }
496
+
497
var err error
498
var user *models.User
499
if c.IsSet("email") {
0 commit comments