scripts/core/augmented.js
function(permissions, negative) {
            if (!negative) {
              negative = false;
            }
            if (permissions !== null && Array.isArray(permissions)) {
              if (negative) {
                this.permissions.exclude = permissions;
              } else {
                this.permissions.include = permissions;
              }
            }
          }
function(permissions, negative) {
            if (!negative) {
              negative = false;
            }
            if (permissions !== null && Array.isArray(permissions)) {
              if (negative) {
                this.permissions.exclude = permissions;
              } else {
                this.permissions.include = permissions;
              }
            }
          }
function ( permissions , negative ) { if ( ! negative ) { negative = false ; } if ( permissions !== null && Array . isArray ( permissions ) ) { if ( negative ) { this . permissions . exclude = permissions ; } else { this . permissions . include = permissions ; } } }
Sets the permissions to the view
@method setPermissions
@param {array} permissions The permissions to set
@param {boolean} negative Flag to set a nagative permission (optional)
@memberof Augmented.View
Sets the permissions to the view