reorder if blocks so getById is possible
authormiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 9 May 2008 00:28:54 +0000 (00:28 +0000)
committermiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 9 May 2008 00:28:54 +0000 (00:28 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@9541 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/web/js/dojo/openils/User.js

index f189dcc..875c695 100644 (file)
@@ -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();
 
         },