PROPPATCH: Fix privileges

This commit is contained in:
Lennart
2025-12-05 14:48:11 +01:00
parent 607db62859
commit e39657eb29

View File

@@ -88,7 +88,7 @@ pub async fn route_proppatch<R: ResourceService>(
.get_resource(path_components, false)
.await?;
let privileges = resource.get_user_privileges(principal)?;
if !privileges.has(&UserPrivilege::Write) {
if !privileges.has(&UserPrivilege::WriteProperties) {
return Err(Error::Unauthorized.into());
}