Skip to content

Instantly share code, notes, and snippets.

@wbashir
Created August 29, 2013 17:42
Show Gist options
  • Save wbashir/6381117 to your computer and use it in GitHub Desktop.
Save wbashir/6381117 to your computer and use it in GitHub Desktop.
Before filter - Log in
this.route('/', {
before: function() {
if(!Meteor.loggingIn() && !Meteor.user()) {
this.redirect("login");
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment