Skip to content

Commit 1366ca3

Browse files
raucaowxiaoguang
andauthored
Update services/auth/source/ldap/source_sync.go
Co-authored-by: wxiaoguang <[email protected]>
1 parent fa8e2db commit 1366ca3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

services/auth/source/ldap/source_sync.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ func (source *Source) Sync(ctx context.Context, updateExisting bool) error {
178178
}
179179
}
180180

181-
if err == nil && source.AttributeAvatar != "" {
181+
if source.AttributeAvatar != "" {
182182
if len(su.Avatar) > 0 && usr.IsUploadAvatarChanged(su.Avatar) {
183183
log.Trace("SyncExternalUsers[%s]: Uploading new avatar for %s", source.AuthSource.Name, usr.Name)
184184
_ = user_service.UploadAvatar(ctx, usr, su.Avatar)

0 commit comments

Comments
 (0)