User sync fixes
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Juan Ferrer 2020-10-31 02:31:42 +01:00
parent 1354d4647d
commit fdf6df4ca8
1 changed files with 2 additions and 2 deletions

View File

@ -119,8 +119,8 @@ module.exports = Self => {
sambaClient
} = sync;
// Avoid to change adminitration users
if (['administrator', 'root'].indexOf(userName.toLowerCase()) >= 0)
// Skip conflicting users
if (!userName || ['administrator', 'root'].indexOf(userName.toLowerCase()) >= 0)
return;
let user = await $.Account.findOne({