diff options
Diffstat (limited to 'apps/files_versions')
-rw-r--r-- | apps/files_versions/command/expire.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/files_versions/command/expire.php b/apps/files_versions/command/expire.php index 6cec9f4fac3..ec9aa3e80d3 100644 --- a/apps/files_versions/command/expire.php +++ b/apps/files_versions/command/expire.php @@ -50,6 +50,12 @@ class Expire implements ICommand { public function handle() { + $userManager = \OC::$server->getUserManager(); + if (!$userManager->userExists($this->user)) { + // User has been deleted already + return; + } + \OC_Util::setupFS($this->user); Storage::expire($this->fileName, $this->versionsSize, $this->neededSpace); \OC_Util::tearDownFS(); |