Skip to content

Commit 0d6c658

Browse files
committed
fix
1 parent bc81d12 commit 0d6c658

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

models/user.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1062,7 +1062,7 @@ func checkDupEmail(e Engine, u *User) error {
10621062

10631063
// validateUser check if user is valide to insert / update into database
10641064
func validateUser(u *User) error {
1065-
if !setting.Service.AllowedUserVisibilityModesSlice.IsAllowedVisibility(u.Visibility) {
1065+
if !setting.Service.AllowedUserVisibilityModesSlice.IsAllowedVisibility(u.Visibility) && !u.IsOrganization() {
10661066
return fmt.Errorf("visibility Mode not allowed: %s", u.Visibility.String())
10671067
}
10681068

0 commit comments

Comments
 (0)