From 1e97aa0fc0390834e1620ad477b72c4d819033a0 Mon Sep 17 00:00:00 2001 From: e-alfred Date: Tue, 30 Apr 2019 15:26:55 +0200 Subject: [PATCH] Fix deprecated API (#71) --- lib/AppInfo/Application.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/AppInfo/Application.php b/lib/AppInfo/Application.php index 6d666cb..c090c27 100644 --- a/lib/AppInfo/Application.php +++ b/lib/AppInfo/Application.php @@ -33,7 +33,7 @@ class Application extends App { * Core */ $container->registerService('UserId', function(IContainer $c) { - return \OCP\User::getUser(); + return \OC::$server->getUserSession()->getUser()->getUID(); }); $container->registerService('Config', function($c) {