]> source.dussan.org Git - nextcloud-server.git/commitdiff
Only login if user is not logged-in 400/head
authorLukas Reschke <lukas@statuscode.ch>
Thu, 14 Jul 2016 22:13:13 +0000 (00:13 +0200)
committerRoeland Jago Douma <roeland@famdouma.nl>
Mon, 18 Jul 2016 09:09:50 +0000 (11:09 +0200)
ocs/v1.php

index fe7c9a2441d82944855db579ef913a8d5059a54b..e3ecefccf29b90a05215c8f3965f343dde436895 100644 (file)
@@ -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();