aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2016-07-15 00:13:13 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2016-07-18 11:09:50 +0200
commitc90a71a83bd97c03e78d33c12976c3fcf515bf44 (patch)
tree2b391415099c59d7a52fa64435602c40a8b18553
parent0bda09236e52f028b3d1a2f92a3b60541ebc22cd (diff)
downloadnextcloud-server-c90a71a83bd97c03e78d33c12976c3fcf515bf44.tar.gz
nextcloud-server-c90a71a83bd97c03e78d33c12976c3fcf515bf44.zip
Only login if user is not logged-in
-rw-r--r--ocs/v1.php4
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();