mirror of
https://github.com/lennart-k/rustical.git
synced 2025-12-13 22:52:22 +00:00
dav: Implement some principal props for WebDAV ACL
This commit is contained in:
@@ -59,6 +59,15 @@ impl Resource for PrincipalResource {
|
||||
PrincipalProp::AddressbookHomeSet(home_set)
|
||||
}
|
||||
PrincipalPropName::PrincipalAddress => PrincipalProp::PrincipalAddress(None),
|
||||
PrincipalPropName::GroupMembership => {
|
||||
PrincipalProp::GroupMembership(GroupMembership(
|
||||
user.memberships_without_self()
|
||||
.iter()
|
||||
.map(|principal| puri.principal_uri(principal).into())
|
||||
.collect(),
|
||||
))
|
||||
}
|
||||
PrincipalPropName::AlternateUriSet => PrincipalProp::AlternateUriSet,
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user