Don't work, I base on `Meteor@1.5 + Vue`
thearabbit opened this issue · comments
I base on Meteor@1.5 + Vue
:
<template>...... Form....... </template>
--------------
// imports/api/posts/methods
export const insertPost = new ValidatedMethod({
name: 'posts.insert',
mixins: [CallPromiseMixin],
validate: null,
run(doc) {
if (!this.isSimulation) {
return Posts.insert(doc);
}
}
});
------------
// server/security
Posts.permit('insert').never();
But I can insert posts
.
Please help me.
OK now work fine.
Security will allow to do on client code