We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Meteor.registerBeforeMethod('startTimer', function() { if(!this.userId) return false; // <- just make it not undefined else return });
If MIDLEWARES or BEFORE METHODS returns something different from UNDEFINED the execution stops and return this value!
so in my case if user unauthorized, just make it return something?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
If MIDLEWARES or BEFORE METHODS returns something different from UNDEFINED the execution stops and return this value!
so in my case if user unauthorized, just make it return something?
The text was updated successfully, but these errors were encountered: