Fix check for when to store a new version of a file

This commit is contained in:
Michael Gapczynski 2012-05-18 22:27:43 -04:00
parent f750da1802
commit 35bd601215
1 changed files with 2 additions and 2 deletions

View 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));