aboutsummaryrefslogtreecommitdiff
path: root/src/server/authentication/models/current_user_utils.ts
diff options
context:
space:
mode:
authorTyler Schicke <tyler_schicke@brown.edu>2019-03-22 05:19:37 -0400
committerTyler Schicke <tyler_schicke@brown.edu>2019-03-22 05:19:37 -0400
commit3eefc8c7e901242ac6b7614bf1163858568d53b0 (patch)
tree9a1fa2987768c77171beb675fd70d8f0aeb49774 /src/server/authentication/models/current_user_utils.ts
parent8b20d1aa5e980e10f36827c4b9fb2ada29d248b0 (diff)
Moved main doc id
Diffstat (limited to 'src/server/authentication/models/current_user_utils.ts')
-rw-r--r--src/server/authentication/models/current_user_utils.ts16
1 files changed, 13 insertions, 3 deletions
diff --git a/src/server/authentication/models/current_user_utils.ts b/src/server/authentication/models/current_user_utils.ts
index 17a6d493b..3291c671c 100644
--- a/src/server/authentication/models/current_user_utils.ts
+++ b/src/server/authentication/models/current_user_utils.ts
@@ -12,17 +12,27 @@ export class CurrentUserUtils {
private static curr_email: string;
private static curr_id: string;
private static user_document: Document;
+ //TODO tfs: this should be temporary...
+ private static mainDocId: string | undefined;
public static get email(): string {
- return CurrentUserUtils.curr_email;
+ return this.curr_email;
}
public static get id(): string {
- return CurrentUserUtils.curr_id;
+ return this.curr_id;
}
public static get UserDocument(): Document {
- return CurrentUserUtils.user_document;
+ return this.user_document;
+ }
+
+ public static get MainDocId(): string | undefined {
+ return this.mainDocId;
+ }
+
+ public static set MainDocId(id: string | undefined) {
+ this.mainDocId = id;
}
private static createUserDocument(id: string): Document {