summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--apps/files_versions/versions.php4
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));