nl_tokens: Returns a list of actions given role ( s ) have access to
pl_tokens: function ( roles ) { roles = roles || [ '*' ] ; if ( ! Array . isArray ( roles ) ) { roles = [ roles ] ; } if ( roles . indexOf ( '*' ) === - 1 ) roles . push ( '*' ) ; var <mask> = [ ] ; _ . each ( roles , function ( role ) { if ( _ . has ( this . permissions , role ) ) { actions = actions . concat ( this . permissions [ role ] ) ; } } , this ) ; return _ . uniq ( actions ) ; }