check for confirm status before showing events

This commit is contained in:
Kyle Spearrin 2018-07-12 10:14:33 -04:00
parent 1afc05310e
commit ee91f4610e
2 changed files with 2 additions and 2 deletions

2
jslib

@ -1 +1 @@
Subproject commit 7ca2a40478d8d8d50f47f1d6974b85f22eb888f3
Subproject commit 152c44185b6509ad2769f1c1bc306a0e4dd576d5

View File

@ -72,7 +72,7 @@ export class PeopleComponent implements OnInit {
this.searchText = qParams.search;
if (qParams.viewEvents != null) {
const user = this.users.filter((u) => u.id === qParams.viewEvents);
if (user.length > 0) {
if (user.length > 0 && user[0].status === OrganizationUserStatusType.Confirmed) {
this.events(user[0]);
}
}