aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/app/shared')
-rw-r--r--client/src/app/shared/users/user.model.ts7
1 files changed, 5 insertions, 2 deletions
diff --git a/client/src/app/shared/users/user.model.ts b/client/src/app/shared/users/user.model.ts
index b775cb8e7..726495d11 100644
--- a/client/src/app/shared/users/user.model.ts
+++ b/client/src/app/shared/users/user.model.ts
@@ -4,11 +4,14 @@ export class User {
4 role: string; 4 role: string;
5 createdDate: Date; 5 createdDate: Date;
6 6
7 constructor(hash: { id: string, username: string, role: string, createdDate: Date }) { 7 constructor(hash: { id: string, username: string, role: string, createdDate?: Date }) {
8 this.id = hash.id; 8 this.id = hash.id;
9 this.username = hash.username; 9 this.username = hash.username;
10 this.role = hash.role; 10 this.role = hash.role;
11 this.createdDate = hash.createdDate; 11
12 if (hash.createdDate) {
13 this.createdDate = hash.createdDate;
14 }
12 } 15 }
13 16
14 isAdmin() { 17 isAdmin() {