Merge pull request #56195 from nextcloud/addUserMissingVersionsPerms

This commit is contained in:
Benjamin Gaussorgues 2025-11-05 09:27:01 +01:00 committed by GitHub
commit 7a7d0b1039
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -623,7 +623,7 @@ class Storage {
$version->delete();
\OC_Hook::emit('\OCP\Versions', 'delete', ['path' => $internalPath, 'trigger' => self::DELETE_TRIGGER_RETENTION_CONSTRAINT]);
} catch (NotPermittedException $e) {
Server::get(LoggerInterface::class)->error("Missing permissions to delete version: {$internalPath}", ['app' => 'files_versions', 'exception' => $e]);
Server::get(LoggerInterface::class)->error("Missing permissions to delete version for user {$uid}: {$internalPath}", ['app' => 'files_versions', 'exception' => $e]);
}
}
}