server-only-methods
server-only-methods copied to clipboard
How can we make this work for methods called from other methods?
For example, I want to Meteor.call('createUser') from another method, but don't want to let client call it straight from browser. In this case this.connection on server is not null. Thank you!
P.S. Currently I'm using function createUser declared in server/users.js without var keyword.
+1
Seems like storing your code in a fucntion instead of method is the only option.
Sorry for not responding! @avalanche1 is correct here.
Yeah thx, function way is quite tolerable)