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 bc81d12 commit 0d6c658Copy full SHA for 0d6c658
models/user.go
@@ -1062,7 +1062,7 @@ func checkDupEmail(e Engine, u *User) error {
1062
1063
// validateUser check if user is valide to insert / update into database
1064
func validateUser(u *User) error {
1065
- if !setting.Service.AllowedUserVisibilityModesSlice.IsAllowedVisibility(u.Visibility) {
+ if !setting.Service.AllowedUserVisibilityModesSlice.IsAllowedVisibility(u.Visibility) && !u.IsOrganization() {
1066
return fmt.Errorf("visibility Mode not allowed: %s", u.Visibility.String())
1067
}
1068
0 commit comments