rmosolgo/batmanjs-mvc-cookbook — pull request #4 by bradstewart (2014-07-17 14:27:11+00:00)
Title: Authorize controller actions to specific user roles with a beforeAction

I can't promise this Markdown is in fact valid, but I tried. This is a very simple mechanism I'm using to prevent unauthorized user roles from accessing the actions (and rendered views) of specific controllers by redirecting them to an unauthorized page with a `beforeAction`.