Skip to content

Commit

Permalink
Fixing missing oc_authtoken for native clients #27845
Browse files Browse the repository at this point in the history
  • Loading branch information
IljaN committed Sep 1, 2017
1 parent fe7e440 commit 7d1766a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/private/legacy/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ public static function loadApps($types = null) {
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)) {
if (!is_null($davUser)) {
\OC::$server->getUserSession()->validateSession();
}
}
Expand Down

0 comments on commit 7d1766a

Please sign in to comment.