diff options
author | Lukas Reschke <lukas@statuscode.ch> | 2016-07-15 00:13:13 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2016-07-18 11:09:50 +0200 |
commit | c90a71a83bd97c03e78d33c12976c3fcf515bf44 (patch) | |
tree | 2b391415099c59d7a52fa64435602c40a8b18553 | |
parent | 0bda09236e52f028b3d1a2f92a3b60541ebc22cd (diff) | |
download | nextcloud-server-c90a71a83bd97c03e78d33c12976c3fcf515bf44.tar.gz nextcloud-server-c90a71a83bd97c03e78d33c12976c3fcf515bf44.zip |
Only login if user is not logged-in
-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(); |