summaryrefslogtreecommitdiffstats
path: root/lib/private/legacy/app.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/legacy/app.php')
-rw-r--r--lib/private/legacy/app.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/legacy/app.php b/lib/private/legacy/app.php
index a475b895d9f..d5af15bdc20 100644
--- a/lib/private/legacy/app.php
+++ b/lib/private/legacy/app.php
@@ -488,7 +488,7 @@ class OC_App {
}
// if the user is logged-in
- if (OC_User::isLoggedIn()) {
+ if (\OC::$server->getUserSession()->isLoggedIn()) {
// personal menu
$settings[] = array(
"id" => "personal",
@@ -1227,7 +1227,7 @@ class OC_App {
*/
public static function getStorage($appId) {
if (OC_App::isEnabled($appId)) { //sanity check
- if (OC_User::isLoggedIn()) {
+ if (\OC::$server->getUserSession()->isLoggedIn()) {
$view = new \OC\Files\View('/' . OC_User::getUser());
if (!$view->file_exists($appId)) {
$view->mkdir($appId);