Skip to content

Commit

Permalink
Also skip the login attempt from ocs base
Browse files Browse the repository at this point in the history
Signed-off-by: Joas Schilling <coding@schilljs.com>
  • Loading branch information
nickvergessen committed Mar 10, 2023
1 parent f686000 commit 4ec3890
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ocs/v1.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
// side effects in existing apps
OC_App::loadApps();

if (!\OC::$server->getUserSession()->isLoggedIn()) {
if (!\OC::$server->getUserSession()->isLoggedIn() && !\OC::$server->getRequest()->getHeader('X-Nextcloud-Federation')) {
OC::handleLogin(\OC::$server->getRequest());
}

Expand Down

0 comments on commit 4ec3890

Please sign in to comment.