fix calendar bug for personal

This commit is contained in:
Yaman Qalieh 2016-09-11 18:51:09 -04:00
parent 3dd703f103
commit fae5b62a33

View File

@ -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