Skip to content
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

Initial ACL implementation #172

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Conversation

oliverpool
Copy link

@oliverpool oliverpool commented Oct 6, 2024

Also aiming to support thunderbird (like #170), I took a deeper look at the RFC7344.

Internally I tried to stick to the RFC with a lot of copy/paste:

Externally, I added a ReadOnly boolean field to AddressObject and AddressBook (default false means read-write).

@mheers according to my tests, thunderbird is happy with having privileges only on AddressObject and AddressBook (thunderbird also asks privileges on ListAddressBooks, but seems happy with a 404 propstat at this level).

@oliverpool oliverpool marked this pull request as ready for review October 8, 2024 17:09
Comment on lines +354 to +363
// convenience CurrentUserPrivilegeSet
var (
CurrentUserPrivilegeSetReadOnly = CurrentUserPrivilegeSet{
Privilege: []Privilege{NewPrivilege(Read)},
}
CurrentUserPrivilegeSetReadWrite = CurrentUserPrivilegeSet{
Privilege: []Privilege{NewPrivilege(Read), NewPrivilege(Write)},
}
)

Copy link
Author

Choose a reason for hiding this comment

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

Well hidden in this huge file 😉

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.

1 participant