function whoami to help during development

This commit is contained in:
Anton Georgiev 2014-11-19 23:22:50 +00:00
parent 0616c593f3
commit 81d8fbde08

View File

@ -267,7 +267,8 @@ Handlebars.registerHelper "visibility", (section) ->
@chatTabs.insert({ userId: "PUBLIC_CHAT", name: "Public", gotMail: false, class: "publicChatTab"})
@chatTabs.insert({ userId: "OPTIONS", name: "Options", gotMail: false, class: "optionsChatTab"})
# TODO TEMPORARY!!
# must not have this in production
@whoami = ->
return {
username: getInSession "userName"