diff --git a/lib/Controller/BookmarkController.php b/lib/Controller/BookmarkController.php index d2dd9a8420..6680689a20 100644 --- a/lib/Controller/BookmarkController.php +++ b/lib/Controller/BookmarkController.php @@ -146,6 +146,7 @@ public function __construct( $this->lockManager = $lockManager; $this->authorizer->setCORS(true); + \OC_User::setIncognitoMode(true); } /** diff --git a/lib/Controller/FoldersController.php b/lib/Controller/FoldersController.php index af36c77485..b5a095b9d7 100644 --- a/lib/Controller/FoldersController.php +++ b/lib/Controller/FoldersController.php @@ -79,6 +79,7 @@ public function __construct($appName, $request, FolderMapper $folderMapper, Publ $this->logger = $logger; $this->authorizer->setCORS(true); + \OC_User::setIncognitoMode(true); $this->userManager = $userManager; } diff --git a/lib/Controller/InternalBookmarkController.php b/lib/Controller/InternalBookmarkController.php index 57abdbd349..22880bd623 100644 --- a/lib/Controller/InternalBookmarkController.php +++ b/lib/Controller/InternalBookmarkController.php @@ -43,6 +43,7 @@ public function __construct( $authorizer->setUserId($this->userId); } $authorizer->setCORS(false); + \OC_User::setIncognitoMode(false); } /** diff --git a/lib/Controller/InternalFoldersController.php b/lib/Controller/InternalFoldersController.php index 2fb62cc888..370fcbd651 100644 --- a/lib/Controller/InternalFoldersController.php +++ b/lib/Controller/InternalFoldersController.php @@ -27,6 +27,7 @@ public function __construct($appName, $request, $userId, FoldersController $cont $authorizer->setUserId($userId); } $authorizer->setCORS(false); + \OC_User::setIncognitoMode(false); } /** diff --git a/lib/Controller/InternalTagsController.php b/lib/Controller/InternalTagsController.php index f8f25efae8..048ada8434 100644 --- a/lib/Controller/InternalTagsController.php +++ b/lib/Controller/InternalTagsController.php @@ -16,6 +16,7 @@ class InternalTagsController extends ApiController { public function __construct($appName, $request, TagsController $publicController) { parent::__construct($appName, $request); $this->publicController = $publicController; + \OC_User::setIncognitoMode(false); } /** diff --git a/lib/Controller/TagsController.php b/lib/Controller/TagsController.php index d9bbd1b3b0..c3a91b3efa 100644 --- a/lib/Controller/TagsController.php +++ b/lib/Controller/TagsController.php @@ -24,6 +24,7 @@ public function __construct($appName, $request, $userId, DB\TagMapper $tagMapper parent::__construct($appName, $request); $this->userId = $userId; $this->tagMapper = $tagMapper; + \OC_User::setIncognitoMode(true); } /** diff --git a/lib/Controller/WebViewController.php b/lib/Controller/WebViewController.php index 2f646f2c0b..21911dfc8e 100644 --- a/lib/Controller/WebViewController.php +++ b/lib/Controller/WebViewController.php @@ -136,6 +136,7 @@ public function index(): AugmentedTemplateResponse { * @PublicPage */ public function link(string $token) { + \OC_User::setIncognitoMode(true); $title = 'No title found'; $userName = 'Unknown'; try {