Skip to content

Conversation

@RubenVerborgh
Copy link
Contributor

Avoid that the same .acl files are read and parsed multiple times per request.

@RubenVerborgh
Copy link
Contributor Author

@dmitrizagidulin You might want to have this as a merge commit rather than rebase, in order to keep the commits together.

@dmitrizagidulin
Copy link
Contributor

@RubenVerborgh good call, re merge


// Check the resource's permissions
return this._permissionSet.then(acls => this.checkAccess(acls, user, mode))
.catch(err => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this should be indented? Something like:

return this._permissionSet
  .then(acls => this.checkAccess(acls, user, mode))
  .catch(err => {
  })

?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense, will do. (standard didn't complain; but I'd be the last person to say that it is a good style checker 😉)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done in bda7426, let me know if more indentation needs adjustments.

@dmitrizagidulin
Copy link
Contributor

Oh man, great work on this!

@dmitrizagidulin dmitrizagidulin merged commit 3161b68 into dz_oidc Aug 18, 2017
@dmitrizagidulin dmitrizagidulin deleted the feature/cache-acl branch August 18, 2017 18:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants