From a486e8b6240ec51491231ad199384252caf46e05 Mon Sep 17 00:00:00 2001 From: miker Date: Fri, 9 May 2008 00:28:54 +0000 Subject: [PATCH] reorder if blocks so getById is possible git-svn-id: svn://svn.open-ils.org/ILS/trunk@9541 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/web/js/dojo/openils/User.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Open-ILS/web/js/dojo/openils/User.js b/Open-ILS/web/js/dojo/openils/User.js index f189dcc470..875c695ace 100644 --- a/Open-ILS/web/js/dojo/openils/User.js +++ b/Open-ILS/web/js/dojo/openils/User.js @@ -43,8 +43,8 @@ if(!dojo._hasResource["openils.User"]) { this.location = kwargs.location; this.authcookie = kwargs.authcookie || openils.User.authcookie; - if (this.authtoken) this.getBySession(); - else if (this.id && this.authtoken) this.user = this.getById( this.id ); + if (this.id && this.authtoken) this.user = this.getById( this.id ); + else if (this.authtoken) this.getBySession(); else if (kwargs.login) this.login(); }, -- 2.43.2