From: erickson Date: Wed, 18 Mar 2009 12:51:48 +0000 (+0000) Subject: this.user might be an event, check for that X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=883bd935bd3c2a5d9437145531099e93c52af398;p=evergreen%2Fmasslnc.git this.user might be an event, check for that git-svn-id: svn://svn.open-ils.org/ILS/trunk@12571 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/web/js/dojo/openils/User.js b/Open-ILS/web/js/dojo/openils/User.js index edee31adc1..a7cbc48b3b 100644 --- a/Open-ILS/web/js/dojo/openils/User.js +++ b/Open-ILS/web/js/dojo/openils/User.js @@ -54,7 +54,7 @@ if(!dojo._hasResource["openils.User"]) { else if (this.authtoken) this.getBySession(); else if (kwargs.login) this.login(); - var id = this.id || (this.user) ? this.user.id() : null; + var id = this.id || (this.user && this.user.id) ? this.user.id() : null; if(id && !this.permOrgCache[id]) this.permOrgCache[id] = {}; },