-
Notifications
You must be signed in to change notification settings - Fork 305
Add caching to ACL #552
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add caching to ACL #552
Conversation
94301db to
bf912ed
Compare
bf912ed to
fa23c82
Compare
62cdcbc to
2e81b07
Compare
|
@dmitrizagidulin You might want to have this as a merge commit rather than rebase, in order to keep the commits together. |
|
@RubenVerborgh good call, re merge |
lib/acl-checker.js
Outdated
|
|
||
| // Check the resource's permissions | ||
| return this._permissionSet.then(acls => this.checkAccess(acls, user, mode)) | ||
| .catch(err => { |
There was a problem hiding this comment.
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 => {
})?
There was a problem hiding this comment.
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 😉)
There was a problem hiding this comment.
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.
|
Oh man, great work on this! |
Avoid that the same .acl files are read and parsed multiple times per request.