Fix DAV: acl-principal-prop-set REPORT enforced the wrong privilege
This commit is contained in:
@@ -256,7 +256,7 @@ impl DavAclHandler for Server {
|
||||
|
||||
// Validate ACLs
|
||||
if !access_token.is_member(uri.account_id)
|
||||
&& !acls.effective_acl(access_token).contains(Acl::Read)
|
||||
&& !acls.effective_acl(access_token).contains(Acl::Share)
|
||||
{
|
||||
return Err(DavError::Code(StatusCode::FORBIDDEN));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user