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.splice((p.indexOf(permission)), 1);
            }
          }
function(permission, negative) {
            if (!negative) {
              negative = false;
            }
            if (permission !== null && !Array.isArray(permission)) {
              var p = (negative) ? this.permissions.exclude : this.permissions.include;
              p.splice((p.indexOf(permission)), 1);
            }
          }
function ( permission , negative ) { if ( ! negative ) { negative = false ; } if ( permission !== null && ! Array . isArray ( permission ) ) { var p = ( negative ) ? this . permissions . exclude : this . permissions . include ; p . splice ( ( p . indexOf ( permission ) ) , 1 ) ; } }
Removes a permission to the view
@method removePermission
@param {string} permission The permission to remove
@param {boolean} negative Flag to set a nagative permission (optional)
@memberof Augmented.View
Removes a permission to the view