create cdav principal also on client access and remove redundant pconfig check in authentication process

This commit is contained in:
Mario Vavti
2017-08-10 21:58:44 +02:00
parent 0a96cdd950
commit 0e3b5536e2
2 changed files with 12 additions and 6 deletions

View File

@@ -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;
}
/**