aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-01-26 14:15:57 -0800
committerfriendica <info@friendica.com>2014-01-26 14:15:57 -0800
commitd296b02b0e522dbbd30ad7926e9f80f3c8c04328 (patch)
tree294c212b656312614ad6fe46863205157e7f85bd /include
parent0948c3c3ca5aa3621247c7a77a05ac5acd085459 (diff)
downloadvolse-hubzilla-d296b02b0e522dbbd30ad7926e9f80f3c8c04328.tar.gz
volse-hubzilla-d296b02b0e522dbbd30ad7926e9f80f3c8c04328.tar.bz2
volse-hubzilla-d296b02b0e522dbbd30ad7926e9f80f3c8c04328.zip
The final piece of the DAV authentication puzzle. Provide a directory view to an un-auth'd person (without asking for a password) by adding a query parameter 'davguest=1'. This is a bit of a hack, but there was no response on the official forum about how to do this correctly so it will have to do. On the downside, if permission is denied, it won't ask for a password - but we're talking about unauthenticated folks who didn't go through magic auth so chances are even if they authenticate, permission will still be denied.
Diffstat (limited to 'include')
-rw-r--r--include/conversation.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/conversation.php b/include/conversation.php
index cec5993b6..34d661004 100644
--- a/include/conversation.php
+++ b/include/conversation.php
@@ -1481,7 +1481,7 @@ function profile_tabs($a, $is_owner=False, $nickname=Null){
if($p['view_storage']) {
$tabs[] = array(
'label' => t('Files'),
- 'url' => $a->get_baseurl() . '/cloud/' . $nickname,
+ 'url' => $a->get_baseurl() . '/cloud/' . $nickname . ((get_observer_hash()) ? '' : '?f=&davguest=1'),
'sel' => ((argv(0) == 'cloud') ? 'active' : ''),
'title' => t('Files and Storage'),
'id' => 'files-tab',