aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Storage
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2016-08-06 12:46:10 +0200
committerMario Vavti <mario@mariovavti.com>2016-08-06 12:46:10 +0200
commit4f0b1386924b52da59d0a4eedaae689173fe21da (patch)
treeab3453e054f88cb792cac4479df2b870822c9a3d /Zotlabs/Storage
parentb6db0f72f5ec6501b52110763cb917369d0980ca (diff)
downloadvolse-hubzilla-4f0b1386924b52da59d0a4eedaae689173fe21da.tar.gz
volse-hubzilla-4f0b1386924b52da59d0a4eedaae689173fe21da.tar.bz2
volse-hubzilla-4f0b1386924b52da59d0a4eedaae689173fe21da.zip
bring back acl for cloud file uploads
Diffstat (limited to 'Zotlabs/Storage')
-rw-r--r--Zotlabs/Storage/Browser.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/Zotlabs/Storage/Browser.php b/Zotlabs/Storage/Browser.php
index 78b267bf8..7bae8f0ee 100644
--- a/Zotlabs/Storage/Browser.php
+++ b/Zotlabs/Storage/Browser.php
@@ -279,7 +279,7 @@ class Browser extends DAV\Browser\Plugin {
$aclselect = null;
$lockstate = '';
- if($this->auth-owner_id) {
+ if($this->auth->owner_id) {
$channel = channelx_by_n($this->auth->owner_id);
if($channel) {
$acl = new \Zotlabs\Access\AccessList($channel);
@@ -330,6 +330,7 @@ class Browser extends DAV\Browser\Plugin {
'$deny_gid' => acl2json($channel_acl['deny_gid']),
'$lockstate' => $lockstate,
'$return_url' => \App::$cmd,
+ '$path' => str_replace('cloud/' . $this->auth->owner_nick . '/', '', $path),
'$dragdroptext' => t('Drop files here to immediately upload')
));
}