Skip to content

Commit

Permalink
Validate session only if we are not in a basic auth request
Browse files Browse the repository at this point in the history
  • Loading branch information
DeepDiver1975 committed Mar 23, 2017
1 parent a253b56 commit f1dc2d9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/private/legacy/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,10 @@ 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()) {
\OC::$server->getUserSession()->validateSession();
$davUser = \OC::$server->getUserSession()->getSession()->get(\OCA\DAV\Connector\Sabre\Auth::DAV_AUTHENTICATED);
if (is_null($davUser)) {
\OC::$server->getUserSession()->validateSession();
}
}
}

Expand Down

0 comments on commit f1dc2d9

Please sign in to comment.