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