scripts/core/augmented.js
function(permission, negative) {
            if (!negative) {
              negative = false;
            }
            if (permission !== null && !Array.isArray(permission)) {
              var p = (negative) ? this.permissions.exclude : this.permissions.include;
              p.push(permission);
            }
          }
function(permission, negative) {
            if (!negative) {
              negative = false;
            }
            if (permission !== null && !Array.isArray(permission)) {
              var p = (negative) ? this.permissions.exclude : this.permissions.include;
              p.push(permission);
            }
          }
function ( permission , negative ) { if ( ! negative ) { negative = false ; } if ( permission !== null && ! Array . isArray ( permission ) ) { var p = ( negative ) ? this . permissions . exclude : this . permissions . include ; p . push ( permission ) ; } }
Adds a permission to the view
@method addPermission
@param {string} permission The permission to add
@param {boolean} negative Flag to set a nagative permission (optional)
@memberof Augmented.View
Adds a permission to the view