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 8574a64 commit e35f8e1Copy full SHA for e35f8e1
cmd/admin.go
@@ -578,12 +578,16 @@ func runCreateUser(c *cli.Context) error {
578
restricted = util.OptionalBoolOf(c.Bool("restricted"))
579
}
580
581
+ // default user visibility in app.ini
582
+ visibility := setting.Service.DefaultUserVisibilityMode
583
+
584
u := &user_model.User{
585
Name: username,
586
Email: c.String("email"),
587
Passwd: password,
588
IsAdmin: c.Bool("admin"),
589
MustChangePassword: changePassword,
590
+ Visibility: visibility,
591
592
593
overwriteDefault := &user_model.CreateUserOverwriteOptions{
0 commit comments