Sha256: b4b2c43c591900c75ed3f5b65952756b96b1a31d3e9ed43e242dbcd71f604851

Contents?: true

Size: 481 Bytes

Versions: 102

Compression:

Stored size: 481 Bytes

Contents

export class Grant {
  /**
   * Initialize the Grant 
   * @param {Agent} agent the agent the grant applies to
   * @param {String} access the access level to grant
   * @param {String} accessLabel the access level to display 
   */
  constructor(agent, access, accessLabel) {
    this.agent = agent
    this.access = access
    this.accessLabel = accessLabel
    this.index = 0
  }

  get name() {
    return this.agent.name
  }

  get type() {
    return this.agent.type
  }
}


Version data entries

102 entries across 102 versions & 3 rubygems

Version Path
hyrax-5.0.4 app/assets/javascripts/hyrax/permissions/grant.es6
hyrax-5.0.3 app/assets/javascripts/hyrax/permissions/grant.es6
hyrax-5.0.2 app/assets/javascripts/hyrax/permissions/grant.es6
hyrax-5.0.1 app/assets/javascripts/hyrax/permissions/grant.es6
hyrax-5.0.0 app/assets/javascripts/hyrax/permissions/grant.es6
hyrax-5.0.0.rc3 app/assets/javascripts/hyrax/permissions/grant.es6
hyrax-5.0.0.rc2 app/assets/javascripts/hyrax/permissions/grant.es6
hyrax-5.0.0.rc1 app/assets/javascripts/hyrax/permissions/grant.es6
hyrax-3.6.0 app/assets/javascripts/hyrax/permissions/grant.es6
hyrax-4.0.0 app/assets/javascripts/hyrax/permissions/grant.es6
hyrax-4.0.0.rc3 app/assets/javascripts/hyrax/permissions/grant.es6
hyrax-4.0.0.rc2 app/assets/javascripts/hyrax/permissions/grant.es6
hyrax-4.0.0.rc1 app/assets/javascripts/hyrax/permissions/grant.es6
hyrax-3.5.0 app/assets/javascripts/hyrax/permissions/grant.es6
hyrax-4.0.0.beta2 app/assets/javascripts/hyrax/permissions/grant.es6
hyrax-3.4.2 app/assets/javascripts/hyrax/permissions/grant.es6
hyrax-4.0.0.beta1 app/assets/javascripts/hyrax/permissions/grant.es6
hyrax-3.4.1 app/assets/javascripts/hyrax/permissions/grant.es6
hyrax-3.4.0 app/assets/javascripts/hyrax/permissions/grant.es6
hyrax-3.3.0 app/assets/javascripts/hyrax/permissions/grant.es6