]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix check for when to store a new version of a file
authorMichael Gapczynski <GapczynskiM@gmail.com>
Sat, 19 May 2012 02:27:43 +0000 (22:27 -0400)
committerMichael Gapczynski <GapczynskiM@gmail.com>
Sat, 19 May 2012 02:27:43 +0000 (22:27 -0400)
apps/files_versions/versions.php

index eda139b622f8a28b1c9cd34bc9cc8e4a91fad742..8a88808f548ec96bb6e33d321c8f9521703b5422 100644 (file)
@@ -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));