diff options
Diffstat (limited to 'Zotlabs/Storage/BasicAuth.php')
-rw-r--r-- | Zotlabs/Storage/BasicAuth.php | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/Zotlabs/Storage/BasicAuth.php b/Zotlabs/Storage/BasicAuth.php index 0ff9fad13..d8af03703 100644 --- a/Zotlabs/Storage/BasicAuth.php +++ b/Zotlabs/Storage/BasicAuth.php @@ -187,14 +187,11 @@ 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; - } + if($channel_id && in_array(\App::$module,[ 'dav', 'cdav', 'snap'] )) { + return true; } - return true; + $this->module_disabled = true; + return false; } /** |