diff --git a/src/user.js b/src/user.js index 041bdfc07c..029897383e 100644 --- a/src/user.js +++ b/src/user.js @@ -114,7 +114,7 @@ var bcrypt = require('bcryptjs'), user.password = null; } - if (parseInt(user.uid, 10) === 0) { + if (!parseInt(user.uid, 10)) { user.username = '[[global:guest]]'; user.userslug = ''; }