From 449cfadaa77f1f1197bc43ec9fd92ad2c6ee0a4d Mon Sep 17 00:00:00 2001 From: Pierre-Alain Bandinelli Date: Fri, 8 Apr 2022 11:08:41 +0200 Subject: [PATCH] Trying to fix a bug with nextcloud suggestions --- app/rainloop/v/1.16.0/app/libraries/RainLoop/Utils.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/rainloop/v/1.16.0/app/libraries/RainLoop/Utils.php b/app/rainloop/v/1.16.0/app/libraries/RainLoop/Utils.php index d772b8f3..33e87cb8 100644 --- a/app/rainloop/v/1.16.0/app/libraries/RainLoop/Utils.php +++ b/app/rainloop/v/1.16.0/app/libraries/RainLoop/Utils.php @@ -540,7 +540,7 @@ public static function IsOwnCloud() */ public static function IsOwnCloudLoggedIn() { - return self::IsOwnCloud() && \class_exists('OCP\User') && \OCP\User::isLoggedIn(); + return self::IsOwnCloud() && \OC::$server->getUserSession()->isLoggedIn(); } /**