mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-03 20:45:58 +01:00
pass correct uid to client side
-1 spider,0 guest, >0 regular user
This commit is contained in:
@@ -83,7 +83,7 @@ module.exports = function (middleware) {
|
||||
},
|
||||
user: function (next) {
|
||||
var userData = {
|
||||
uid: 0,
|
||||
uid: req.uid,
|
||||
username: '[[global:guest]]',
|
||||
userslug: '',
|
||||
fullname: '[[global:guest]]',
|
||||
|
||||
Reference in New Issue
Block a user