From: Michael Gapczynski Date: Sat, 19 May 2012 02:27:43 +0000 (-0400) Subject: Fix check for when to store a new version of a file X-Git-Tag: v4.0.0~5 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=35bd60121549aaedb398081ff05403c4e2508866;p=nextcloud-server.git Fix check for when to store a new version of a file --- diff --git a/apps/files_versions/versions.php b/apps/files_versions/versions.php index eda139b622f..8a88808f548 100644 --- a/apps/files_versions/versions.php +++ b/apps/files_versions/versions.php @@ -101,8 +101,8 @@ class Storage { } - // check mininterval if this isn't a shared file (all shared files should be versioned despite mininterval) - if (!isset($source)) { + // check mininterval if the file is being modified by the owner (all shared files should be versioned despite mininterval) + if ($uid == \OCP\User::getUser()) { $matches=glob($versionsfoldername.$filename.'.v*'); sort($matches); $parts=explode('.v',end($matches));