mirror of
https://github.com/lennart-k/rustical.git
synced 2025-12-14 01:12:24 +00:00
rustical_dav: Make actix-web a completely optional dependency
This commit is contained in:
@@ -69,7 +69,7 @@ pub async fn route_delete<R: ResourceService>(
|
||||
if_match: Option<IfMatch>,
|
||||
if_none_match: Option<IfNoneMatch>,
|
||||
) -> Result<(), R::Error> {
|
||||
let resource = resource_service.get_resource(&path_components).await?;
|
||||
let resource = resource_service.get_resource(path_components).await?;
|
||||
|
||||
let privileges = resource.get_user_privileges(&principal)?;
|
||||
if !privileges.has(&UserPrivilege::Write) {
|
||||
|
||||
Reference in New Issue
Block a user