Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot create user when only visibility Private is allowed #16840

Closed
2 tasks done
svh1985 opened this issue Aug 27, 2021 · 2 comments · Fixed by #16845
Closed
2 tasks done

Cannot create user when only visibility Private is allowed #16840

svh1985 opened this issue Aug 27, 2021 · 2 comments · Fixed by #16845
Milestone

Comments

@svh1985
Copy link

svh1985 commented Aug 27, 2021

  • 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                  = No_Reply@email.com
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

zeripath added a commit to zeripath/gitea that referenced this issue Aug 27, 2021
Set the default visibility on the user create page.

Fix go-gitea#16840

Signed-off-by: Andrew Thornton <art27@cantab.net>
@zeripath
Copy link
Contributor

This is a simple template error. If you click on the dropdown and then reselect the correct visibility it will work.

@zeripath
Copy link
Contributor

PR is up but in the mean time just take the template fix from that.

@zeripath zeripath added this to the 1.15.1 milestone Aug 27, 2021
zeripath added a commit that referenced this issue Aug 28, 2021
…6845)

Set the default visibility on the user create page.

Fix #16840

Signed-off-by: Andrew Thornton <art27@cantab.net>
zeripath added a commit to zeripath/gitea that referenced this issue Aug 29, 2021
…-gitea#16845)

Backport go-gitea#16845

Set the default visibility on the user create page.

Fix go-gitea#16840

Signed-off-by: Andrew Thornton <art27@cantab.net>
6543 pushed a commit that referenced this issue Aug 29, 2021
…6845) (#16862)

Backport #16845

Set the default visibility on the user create page.

Fix #16840

Signed-off-by: Andrew Thornton <art27@cantab.net>
@go-gitea go-gitea locked and limited conversation to collaborators Oct 19, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants