scripts/core/augmented.js
function(match, negative) {
            if (!negative) {
              negative = false;
            }
            var p = (negative) ? this.permissions.exclude : this.permissions.include;
            return (p.indexOf(match) !== -1);
          }
function(match, negative) {
            if (!negative) {
              negative = false;
            }
            var p = (negative) ? this.permissions.exclude : this.permissions.include;
            return (p.indexOf(match) !== -1);
          }
function ( match , negative ) { if ( ! negative ) { negative = false ; } var p = ( negative ) ? this . permissions . exclude : this . permissions . include ; return ( p . indexOf ( match ) !== - 1 ) ; }
Matches a permission in the view
@method matchesPermission
@param {string} match The permissions to match
@param {boolean} negative Flag to set a nagative permission (optional)
@returns {boolean} Returns true if the match exists
@memberof Augmented.View
Matches a permission in the view