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

Meteor Role Auth? #540

Closed
fallenpeace opened this issue Feb 24, 2016 · 2 comments
Closed

Meteor Role Auth? #540

fallenpeace opened this issue Feb 24, 2016 · 2 comments

Comments

@fallenpeace
Copy link

Is checking for auth & role auth, at the template level still recommended?

Eg, been looking at some examples on the mantra project, and some of them do auth in the action of flow router

action() {
 if(!Meteor.userId()) {
    FlowRouter.go('/login');
 }
}

Could this be used to check roles too? Or should we just opt for template level checks of auth?

@arunoda
Copy link
Contributor

arunoda commented Feb 24, 2016

Use template/component level auth.

@arunoda arunoda closed this as completed Feb 24, 2016
@uiii
Copy link

uiii commented Mar 18, 2016

Hi, I've made related issue here: kadirahq/mantra#153

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

3 participants