diff options
author | Michael Gapczynski <GapczynskiM@gmail.com> | 2012-05-18 22:27:43 -0400 |
---|---|---|
committer | Michael Gapczynski <GapczynskiM@gmail.com> | 2012-05-18 22:27:43 -0400 |
commit | 35bd60121549aaedb398081ff05403c4e2508866 (patch) | |
tree | 46eb04fe2cb1e025adfb7d426a8380928cdf9d1c /apps/files_versions/versions.php | |
parent | f750da1802d1a7231c74515b4219df352242e4ba (diff) | |
download | nextcloud-server-35bd60121549aaedb398081ff05403c4e2508866.tar.gz nextcloud-server-35bd60121549aaedb398081ff05403c4e2508866.zip |
Fix check for when to store a new version of a file
Diffstat (limited to 'apps/files_versions/versions.php')
-rw-r--r-- | apps/files_versions/versions.php | 4 |
1 files changed, 2 insertions, 2 deletions
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)); |