Skip to content

Commit

Permalink
Always validate session, because else mobile clients don`t apear in s…
Browse files Browse the repository at this point in the history
…essions view
  • Loading branch information
IljaN committed Sep 4, 2017
1 parent ff96152 commit a0330c7
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lib/private/legacy/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,10 +126,7 @@ public static function loadApps($types = null) {
// once all authentication apps are loaded we can validate the session
if (is_null($types) || in_array('authentication', $types)) {
if (\OC::$server->getUserSession()) {
$davUser = \OC::$server->getUserSession()->getSession()->get(\OCA\DAV\Connector\Sabre\Auth::DAV_AUTHENTICATED);
if (!is_null($davUser)) {
\OC::$server->getUserSession()->validateSession();
}
\OC::$server->getUserSession()->validateSession();
}
}

Expand Down

0 comments on commit a0330c7

Please sign in to comment.