From 317604a4e11cd7208ba89283aeb4adfbdd7aa16b Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Thu, 8 Oct 2020 11:01:57 +0200 Subject: [PATCH] session::create also overwrites link-registry, therefore we need to call Link::init_static in after_login too --- api/src/Vfs/Sharing.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/api/src/Vfs/Sharing.php b/api/src/Vfs/Sharing.php index f989e92278..7d4511a960 100644 --- a/api/src/Vfs/Sharing.php +++ b/api/src/Vfs/Sharing.php @@ -222,6 +222,10 @@ class Sharing extends \EGroupware\Api\Sharing { $GLOBALS['egw_info']['user']['apps']['collabora'] = $GLOBALS['egw_info']['apps']['collabora']; } + // session::create also overwrites link-registry + Vfs::clearstatcache(); + // clear link-cache and load link registry without permission check to access /apps + Api\Link::init_static(true); } /**