Skip to content

Commit

Permalink
Make sure proper user data is available for storages without a owner
Browse files Browse the repository at this point in the history
Signed-off-by: Julius Härtl <[email protected]>
  • Loading branch information
juliusknorr committed Nov 14, 2019
1 parent 2457828 commit d4d1994
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions controller/callbackcontroller.php
Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,9 @@ public function track($doc, $users, $key, $status, $url, $token) {

\OC_Util::tearDownFS();
if (!empty($userId)) {
// Set the current user as it is used by the files_version storage to obtain the user
// if no owner has been found e.g. for global external storages
\OC_User::setUserId($ownerId);
\OC_Util::setupFS($userId);
}

Expand Down

0 comments on commit d4d1994

Please sign in to comment.