Making login work with Meteor Accounts package

This commit is contained in:
Bruno Alves de Faria committed 2017-03-23 19:01:22 -03:00
1 parent d47bcb9c2a
commit 65ee016efc
3 files changed
+25 -4

No files matched your search

@@ -33,8 +33,8 @@ OHIF.studylist.retrieveStudyMetadata = studyInstanceUid => {
Meteor.call('GetStudyMetadata', studyInstanceUid, function(error, study) {
console.timeEnd('retrieveStudyMetadata');
if (Meteor.user && Meteor.user()) {
HipaaLogger.logEvent({
if (window.HipaaLogger && Meteor.user && Meteor.user()) {
window.HipaaLogger.logEvent({
eventType: 'viewed',
userId: Meteor.userId(),
userName: Meteor.user().profile.fullName,