Skip to content

Conversation

@bourgeoa
Copy link
Member

bourgeoa commented Nov 1, 2021

Also checkPermissionsForDirectory was removed from lib/handlers/allow.js
Not sure that this is the solution is.

But may be around https://github.com/solid/node-solid-server/blob/ac596768d3360aeb9f4137e4025b0b478052429b/lib/acl-checker.js#L91

acl-checker was upgraded to be able to check permissions separately on resource and parent.

@michielbdejong
Copy link
Member Author

@bourgeoa please review

@michielbdejong michielbdejong force-pushed the check-write-on-container-for-delete branch from 609d6a5 to 8c925c0 Compare November 23, 2021 15:03
Comment on lines 107 to 110
const accessDeniedAccessTo = aclCheck.accessDenied(acl.graph, directory, null, aclFile, agent, [ACL('Write')], agentOrigin, trustedOrigins, originTrustedModes)
const accessResult = !accessDenied && !accessDeniedAccessTo
accessDenied = accessResult ? false : accessDenied || accessDeniedAccessTo
// debugCache('accessDenied result ' + accessDenied)
Copy link
Member

Choose a reason for hiding this comment

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

Why not make a function accessToFromParent (aclValue)

@bourgeoa bourgeoa merged commit 7111713 into main Dec 27, 2021
@bourgeoa bourgeoa deleted the check-write-on-container-for-delete branch December 27, 2021 18:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants