From fae5b62a33ae66a369401fb094b35dc1a8d7cccd Mon Sep 17 00:00:00 2001 From: Yaman Qalieh Date: Sun, 11 Sep 2016 18:51:09 -0400 Subject: [PATCH] fix calendar bug for personal --- hourglass/client/main/main.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hourglass/client/main/main.js b/hourglass/client/main/main.js index f90df37..7fa2e5d 100644 --- a/hourglass/client/main/main.js +++ b/hourglass/client/main/main.js @@ -273,7 +273,8 @@ Template.main.helpers({ }); var inRole = false; - if (Meteor.userId() === work.creator || + if (work.class === Meteor.userId() || + Meteor.userId() === work.creator || Roles.userIsInRole(Meteor.userId(), ['superadmin', 'admin']) || currClass.moderators.indexOf(Meteor.userId()) !== -1 || currClass.banned.indexOf(Meteor.userId()) !== -1