Skip to content
New issue

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

Add hook to add checks to run or not run the publish function at all #2

Open
mitar opened this issue Jan 1, 2015 · 0 comments
Open

Comments

@mitar
Copy link
Member

mitar commented Jan 1, 2015

Currently, we just modify the publish function's output. But another common pattern is to decide to return or not the output at all, based on some permission checks. So to help code reusability, middleware could allow registering hooks which would be called to allow running the publish function, or returning empty publish instead. An allow/deny hooks could be done in similar way to Meteor allow/deny.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant