Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
Fix webdav enable all users options
Browse files Browse the repository at this point in the history
  • Loading branch information
c12simple committed Jun 2, 2017
1 parent d6b4fa8 commit 1303ffb
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions core/src/core/src/pydio/Core/Http/Dav/AuthBackendBasic.php
Expand Up @@ -113,9 +113,11 @@ public function authenticate(Sabre\DAV\Server $server, $realm)
}

$webdavData = $userObject->getPref("AJXP_WEBDAV_DATA");
$active = ConfService::getGlobalConf("WEBDAV_ACTIVE_ALL");
if(!empty($webdavData) && isSet($webdavData["ACTIVE"]) && $webdavData["ACTIVE"] === false){
$active = false;
$globalActive = ConfService::getGlobalConf("WEBDAV_ACTIVE_ALL");
if(!empty($webdavData) && isSet($webdavData["ACTIVE"])){
$active = $webdavData["ACTIVE"];
} else {
$active = $globalActive;
}
if (!$active) {
Logger::warning(__CLASS__, "Login failed", array("user" => $userpass[0], "error" => "WebDAV user not found or disabled"));
Expand Down

0 comments on commit 1303ffb

Please sign in to comment.