meteor / validated-method

Meteor methods with better scoping, argument checking, and good defaults.
https://atmospherejs.com/mdg/validated-method
MIT License
194 stars 28 forks source link

ValidatedMethod Mixin : logged-in user Mixin check before run functions #31

Closed nabiltntn closed 8 years ago

nabiltntn commented 8 years ago

A simple Mixin to check if the user is logged in before every run function. It requires the new checkLoggedInError option which includes the required informations to throw an Error.

Github:

https://github.com/nabiltntn/loggedin-mixin

Atmosphere:

tunifight:loggedin-mixin : https://atmospherejs.com/tunifight/loggedin-mixin

stubailo commented 8 years ago

Looks great! I will link to it in the README. If you want to speed up the process, you can also submit a PR for that.