File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
apps/dav/lib/Connector/Sabre Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -228,11 +228,12 @@ private function auth(RequestInterface $request, ResponseInterface $response) {
228228 if ($ this ->twoFactorManager ->needsSecondFactor ($ this ->userSession ->getUser ())) {
229229 throw new \Sabre \DAV \Exception \NotAuthenticated ('2FA challenge not passed. ' );
230230 }
231- if (\OC_User:: handleApacheAuth () ||
231+ if (
232232 //Fix for broken webdav clients
233233 ($ this ->userSession ->isLoggedIn () && is_null ($ this ->session ->get (self ::DAV_AUTHENTICATED ))) ||
234234 //Well behaved clients that only send the cookie are allowed
235- ($ this ->userSession ->isLoggedIn () && $ this ->session ->get (self ::DAV_AUTHENTICATED ) === $ this ->userSession ->getUser ()->getUID () && $ request ->getHeader ('Authorization ' ) === null )
235+ ($ this ->userSession ->isLoggedIn () && $ this ->session ->get (self ::DAV_AUTHENTICATED ) === $ this ->userSession ->getUser ()->getUID () && $ request ->getHeader ('Authorization ' ) === null ) ||
236+ \OC_User::handleApacheAuth ()
236237 ) {
237238 $ user = $ this ->userSession ->getUser ()->getUID ();
238239 \OC_Util::setupFS ($ user );
You can’t perform that action at this time.
0 commit comments