From 0e3b5536e2a576c3959bf6644103c7a676684024 Mon Sep 17 00:00:00 2001
From: Mario Vavti <mario@mariovavti.com>
Date: Thu, 10 Aug 2017 21:58:44 +0200
Subject: create cdav principal also on client access and remove redundant
 pconfig check in authentication process

---
 Zotlabs/Storage/BasicAuth.php | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

(limited to 'Zotlabs/Storage')

diff --git a/Zotlabs/Storage/BasicAuth.php b/Zotlabs/Storage/BasicAuth.php
index 0ff9fad13..ad2582bb2 100644
--- a/Zotlabs/Storage/BasicAuth.php
+++ b/Zotlabs/Storage/BasicAuth.php
@@ -188,13 +188,10 @@ class BasicAuth extends DAV\Auth\Backend\AbstractBasic {
 
 	protected function check_module_access($channel_id) {
 		if($channel_id && \App::$module === 'cdav') {
-			$x = get_pconfig($channel_id,'cdav','enabled');
-			if(! $x) {
-				$this->module_disabled = true;
-				return false;
-			}
+			return true;
 		}
-		return true;
+		$this->module_disabled = true;
+		return false;
 	}
 
 	/**
-- 
cgit v1.2.3