fix: cross-user unauthorized share-link deletion

This commit is contained in:
Henrique Dias committed 2026-06-03 10:31:44 +02:00
1 parent e07c59df0b
commit 0231b7ebdf
5 files changed
+117 -6

No files matched your search

+1 -1
View File
@@ -100,7 +100,7 @@ func resourceDeleteHandler(fileCache FileCache) handleFunc {
return errToStatus(err), err
}
err = d.store.Share.DeleteWithPathPrefix(file.Path)
err = d.store.Share.DeleteWithPathPrefix(file.Path, d.user.ID)
if err != nil {
log.Printf("WARNING: Error(s) occurred while deleting associated shares with file: %s", err)
}