add davguest param to cut/paste link for directories in mod/filestorage
This commit is contained in:
parent
d296b02b0e
commit
d67fdd1299
@ -69,7 +69,6 @@ function filestorage_content(&$a) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO This will also need to check for files on disk and delete them from there as well as the DB.
|
|
||||||
|
|
||||||
if(argc() > 3 && argv(3) === 'delete') {
|
if(argc() > 3 && argv(3) === 'delete') {
|
||||||
if(! $perms['write_storage']) {
|
if(! $perms['write_storage']) {
|
||||||
@ -110,7 +109,7 @@ function filestorage_content(&$a) {
|
|||||||
|
|
||||||
$channel = $a->get_channel();
|
$channel = $a->get_channel();
|
||||||
|
|
||||||
$cloudpath = get_cloudpath($f);
|
$cloudpath = get_cloudpath($f) . (($f['flags'] & ATTACH_FLAG_DIR) ? '?f=&davguest=1' : '');
|
||||||
|
|
||||||
$aclselect_e = populate_acl($f);
|
$aclselect_e = populate_acl($f);
|
||||||
$is_a_dir = (($f['flags'] & ATTACH_FLAG_DIR) ? true : false);
|
$is_a_dir = (($f['flags'] & ATTACH_FLAG_DIR) ? true : false);
|
||||||
|
@ -23,12 +23,11 @@
|
|||||||
{{else}}
|
{{else}}
|
||||||
<div class="cut-paste-desc">{{$cpdesc}}</div>
|
<div class="cut-paste-desc">{{$cpdesc}}</div>
|
||||||
<input type="text" id="cutpasteinput" name="cutpastelink" value="[attachment]{{$file.hash}},{{$file.revision}}[/attachment]" onclick="this.select();" /><br />
|
<input type="text" id="cutpasteinput" name="cutpastelink" value="[attachment]{{$file.hash}},{{$file.revision}}[/attachment]" onclick="this.select();" /><br />
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
<div class="cut-paste-desc">{{$cpldesc}}</div>
|
<div class="cut-paste-desc">{{$cpldesc}}</div>
|
||||||
<input type="text" id="linkpasteinput" name="cutpasteextlink" value="{{$cloudpath}}" onclick="this.select();"/><br />
|
<input type="text" id="linkpasteinput" name="cutpasteextlink" value="{{$cloudpath}}" onclick="this.select();"/><br />
|
||||||
|
|
||||||
{{/if}}
|
|
||||||
|
|
||||||
<div id="attach-edit-perms" >
|
<div id="attach-edit-perms" >
|
||||||
{{$aclselect}}
|
{{$aclselect}}
|
||||||
</div>
|
</div>
|
||||||
|
Reference in New Issue
Block a user