Skip to content

Commit 411f161

Browse files
Joe AlvesJoe Alves
authored andcommitted
Optional from server option for getLoggedInUser
1 parent 34644cf commit 411f161

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

generated/browser/js/fsa/fsa-pre-built.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,13 +63,13 @@
6363
return !!Session.user;
6464
};
6565

66-
this.getLoggedInUser = function () {
66+
this.getLoggedInUser = function (fromServer) {
6767

6868
// If an authenticated session exists, we
6969
// return the user attached to that session
7070
// with a promise. This ensures that we can
7171
// always interface with this method asynchronously.
72-
if (this.isAuthenticated()) {
72+
if (this.isAuthenticated() && !fromServer) {
7373
return $q.when(Session.user);
7474
}
7575

@@ -126,4 +126,4 @@
126126

127127
});
128128

129-
})();
129+
})();

0 commit comments

Comments
 (0)