Skip to content
This repository was archived by the owner on Nov 25, 2020. It is now read-only.

Commit 9933d87

Browse files
committed
Missing context in cleanUserShares() could create an error on user deletion. Close #1279
1 parent 1e88439 commit 9933d87

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/plugins/action.share/src/ShareCenter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1177,7 +1177,7 @@ public function updateNodeSharedData($oldNode=null, $newNode=null, $copy = false
11771177
* @param String $userId
11781178
*/
11791179
public function cleanUserShares($ctx, $userId){
1180-
$shares = $this->getShareStore()->listShares($userId);
1180+
$shares = $this->getShareStore($ctx)->listShares($userId);
11811181
foreach($shares as $hash => $data){
11821182
$this->getShareStore()->deleteShare($data['SHARE_TYPE'], $hash, false, true);
11831183
}

0 commit comments

Comments
 (0)