edit createWork to allow personal work to be created
This commit is contained in:
parent
64fa523e3d
commit
09dd53fb6f
@ -311,8 +311,9 @@ Meteor.methods({
|
||||
});
|
||||
|
||||
if (Meteor.user() &&
|
||||
found && _.contains(Meteor.user().profile.classes, input.class) &&
|
||||
found.banned.indexOf(Meteor.userId()) === -1 &&
|
||||
((found && _.contains(Meteor.user().profile.classes, input.class) &&
|
||||
!_.contains(found.banned, Meteor.userId())) ||
|
||||
(Meteor.userId() === input.class)) &&
|
||||
input.dueDate instanceof Date && input.dueDate.getTime() >= ref &&
|
||||
_.contains(worktype, input.type) &&
|
||||
input.name.length <= 50 && input.description.length <= 150) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user