Permalink
Browse files

Merge pull request #786 from punkave/browser-side-user-object-fix

currently if a user is logged in, apos.user exists in browser side ja…
  • Loading branch information...
2 parents c6d52b2 + 3c34b2b commit ff57fe5bf9cb102a25b036b33ecec28cac1f5bb4 @austinstarin austinstarin committed on GitHub Jan 9, 2017
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/modules/apostrophe-templates/index.js
@@ -605,7 +605,7 @@ module.exports = {
// who want to know more about the user in browserland
// can push more data and it'll merge
if (req.user) {
- req.browserCall('apos.user = ?;', _.pick('title', '_id', 'username'));
+ req.browserCall('apos.user = ?;', _.pick(req.user, 'title', '_id', 'username'));
}
req.browserCall('apos.scene = ?', scene);

0 comments on commit ff57fe5

Please sign in to comment.