diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2018-01-13 14:13:59 +0100 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2018-01-13 19:29:52 +0100 |
commit | 704133d7328de0ed6b38df95f8cefec0ffdaf8ca (patch) | |
tree | cdeeadc14e510151968aa1440c1b7855b504e902 /lib/private/AppFramework | |
parent | 1faef0c459a51a025f73f7eee46e5607ee6eedf5 (diff) | |
download | nextcloud-server-704133d7328de0ed6b38df95f8cefec0ffdaf8ca.tar.gz nextcloud-server-704133d7328de0ed6b38df95f8cefec0ffdaf8ca.zip |
Remove deprecated functions from DI Container
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'lib/private/AppFramework')
-rw-r--r-- | lib/private/AppFramework/DependencyInjection/DIContainer.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/AppFramework/DependencyInjection/DIContainer.php b/lib/private/AppFramework/DependencyInjection/DIContainer.php index 612728d1356..47566e0381c 100644 --- a/lib/private/AppFramework/DependencyInjection/DIContainer.php +++ b/lib/private/AppFramework/DependencyInjection/DIContainer.php @@ -229,8 +229,8 @@ class DIContainer extends SimpleContainer implements IAppContainer { $server->getURLGenerator(), $server->getLogger(), $c['AppName'], - $app->isLoggedIn(), - $app->isAdminUser(), + $server->getUserSession()->isLoggedIn(), + $server->getGroupManager()->isAdmin($this->getUserId()), $server->getContentSecurityPolicyManager(), $server->getCsrfTokenManager(), $server->getContentSecurityPolicyNonceManager(), |