mirror of
https://github.com/lennart-k/rustical.git
synced 2025-12-14 12:52:27 +00:00
PROPPATCH: Fix privileges
This commit is contained in:
@@ -88,7 +88,7 @@ pub async fn route_proppatch<R: ResourceService>(
|
|||||||
.get_resource(path_components, false)
|
.get_resource(path_components, false)
|
||||||
.await?;
|
.await?;
|
||||||
let privileges = resource.get_user_privileges(principal)?;
|
let privileges = resource.get_user_privileges(principal)?;
|
||||||
if !privileges.has(&UserPrivilege::Write) {
|
if !privileges.has(&UserPrivilege::WriteProperties) {
|
||||||
return Err(Error::Unauthorized.into());
|
return Err(Error::Unauthorized.into());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user