Skip to content

Fix local vs default WAC rule resolution in resource.getWac() - #159

Merged
mrkvon merged 1 commit into
o-development:mainfrom
mrkvon:fix-112-wac-permissions-inheritance
Jul 2, 2026
Merged

Fix local vs default WAC rule resolution in resource.getWac()#159
mrkvon merged 1 commit into
o-development:mainfrom
mrkvon:fix-112-wac-permissions-inheritance

Conversation

@mrkvon

@mrkvon mrkvon commented May 29, 2026

Copy link
Copy Markdown
Collaborator
  • Separate authorizations by acl:accessTo vs acl:default.
  • Track whether actual .acl resource belongs to the resource or to its ancestor.
  • Choose appropriate authorizations accordingly: acl:accessTo for resource level, acl:default for ancestor level.

We also need to cache top-level and default WAC rules separately.

Possible follow-up: separate accessTo and default rules in resource.setWac() as well.

Fixes #112

@mrkvon
mrkvon force-pushed the fix-112-wac-permissions-inheritance branch 4 times, most recently from 2ad9e9b to 5e567ac Compare June 4, 2026 12:34

@jaxoncreed jaxoncreed left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

Separate authorizations by `acl:accessTo` vs `acl:default`.
Track whether actual .acl belongs to the resource or to its ancestor.
Choose appropriate authorizations accordingly.

Fixes o-development#112
@mrkvon
mrkvon force-pushed the fix-112-wac-permissions-inheritance branch from 5e567ac to b768804 Compare July 2, 2026 19:25
@mrkvon
mrkvon merged commit 86b0c12 into o-development:main Jul 2, 2026
2 checks passed
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.

WAC: getWac() incorrectly shows permissions that are not inherited.

2 participants