From f65998f4c21a3b49b9fdace5b15f3a2089010020 Mon Sep 17 00:00:00 2001 From: barisusakli Date: Sat, 10 May 2014 18:41:28 -0400 Subject: [PATCH] fixes guest name on home --- src/user.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 = ''; }