Fix deprecated API (#71)
parent
cc8677d181
commit
1e97aa0fc0
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue