Skip to content

Cannot create user when only visibility Private is allowed #16840

Closed
@svh1985

Description

@svh1985
  • Gitea version (or commit ref): 1.15.0

  • Operating system: Official docker

  • Database (use [x]):

    • MySQL
  • Can you reproduce the bug at https://try.gitea.io:

    • No

Config

[service]
DISABLE_REGISTRATION              = true
REQUIRE_SIGNIN_VIEW               = true
REGISTER_EMAIL_CONFIRM            = true
ENABLE_NOTIFY_MAIL                = true
ALLOW_ONLY_EXTERNAL_REGISTRATION  = false
DEFAULT_KEEP_EMAIL_PRIVATE        = false
DEFAULT_ALLOW_CREATE_ORGANIZATION = false
DEFAULT_ENABLE_TIMETRACKING       = false
NO_REPLY_ADDRESS                  = [email protected]
DEFAULT_USER_VISIBILITY           = private
ALLOWED_USER_VISIBILITY_MODES     = private
DEFAULT_ORG_VISIBILITY            = private
DEFAULT_ORG_MEMBER_VISIBLE        = false
EMAIL_DOMAIN_BLOCKLIST            = "gmail.com,hotmail.com,msn.com"

Description

Can't add users when restricted visibility is set to private only. Visibility dropdown preselected to Private but still get a 500 with an error in the log.

Log

2021/08/27 14:01:20 ...s/web/admin/users.go:155:NewUserPost() [E] CreateUser: visibility Mode not allowed: public

Screenshot

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions