diff options
Diffstat (limited to 'ocs/v1.php')
-rw-r--r-- | ocs/v1.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ocs/v1.php b/ocs/v1.php index fe7c9a2441d..e3ecefccf29 100644 --- a/ocs/v1.php +++ b/ocs/v1.php @@ -70,7 +70,9 @@ try { * Try the appframework routes */ try { - OC::handleLogin(\OC::$server->getRequest()); + if(!\OC::$server->getUserSession()->isLoggedIn()) { + OC::handleLogin(\OC::$server->getRequest()); + } OC::$server->getRouter()->match('/ocsapp'.\OC::$server->getRequest()->getRawPathInfo()); } catch (ResourceNotFoundException $e) { OC_API::setContentType(); |