User sync fixes
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
This commit is contained in:
parent
1354d4647d
commit
fdf6df4ca8
|
@ -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({
|
||||
|
|
Loading…
Reference in New Issue