File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
lib/private/Authentication/Listeners Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change 2626namespace OC \Authentication \Listeners ;
2727
2828use OC \Files \Cache \Cache ;
29+ use OC \Files \Storage \Wrapper \Wrapper ;
2930use OCP \EventDispatcher \Event ;
3031use OCP \EventDispatcher \IEventListener ;
3132use OCP \Files \Config \IMountProviderCollection ;
@@ -56,6 +57,13 @@ public function handle(Event $event): void {
5657 if (!$ storage ) {
5758 throw new \Exception ("User has no home storage " );
5859 }
60+
61+ // remove all wrappers, so we do the delete directly on the home storage bypassing any wrapper
62+ while ($ storage ->instanceOfStorage (Wrapper::class)) {
63+ /** @var Wrapper $storage */
64+ $ storage = $ storage ->getWrapperStorage ();
65+ }
66+
5967 $ this ->homeStorageCache [$ event ->getUser ()->getUID ()] = $ storage ;
6068 }
6169 if ($ event instanceof UserDeletedEvent) {
You can’t perform that action at this time.
0 commit comments