From 883bd935bd3c2a5d9437145531099e93c52af398 Mon Sep 17 00:00:00 2001 From: erickson Date: Wed, 18 Mar 2009 12:51:48 +0000 Subject: [PATCH] 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 --- Open-ILS/web/js/dojo/openils/User.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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] = {}; }, -- 2.11.0