fix calendar bug for personal
This commit is contained in:
parent
3dd703f103
commit
fae5b62a33
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user