When I require login only for postSumit
action I would have:
Router.onBeforeAction(requireLogin, {only: 'postSubmit'});
But, what if I want to add tagSubmit
? Is there better way than
Router.onBeforeAction(requireLogin, {only: 'postSubmit'}, {only: 'tagSubmit'});
?