Skip to content

Commit 5adc14f

Browse files
author
Joe Alves
committed
Clarified fromServer for getLoggedInUser
1 parent 8e45042 commit 5adc14f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,11 @@
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() && !fromServer) {
72+
73+
// Optionally, if true is given as the fromServer parameter,
74+
// then this cached value will not be used.
75+
76+
if (this.isAuthenticated() && fromServer !== true) {
7377
return $q.when(Session.user);
7478
}
7579

0 commit comments

Comments
 (0)