deleteWork no security
This commit is contained in:
parent
22704145c6
commit
5c8cca4009
@ -76,7 +76,8 @@ Meteor.methods({
|
|||||||
|
|
||||||
},
|
},
|
||||||
'deleteWork': function(workid) {
|
'deleteWork': function(workid) {
|
||||||
|
// Add security here
|
||||||
|
work.remove({_id: workid});
|
||||||
},
|
},
|
||||||
'editProfile': function(change) {
|
'editProfile': function(change) {
|
||||||
current = Meteor.user().profile;
|
current = Meteor.user().profile;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user