diff options
author | zotlabs <mike@macgirvin.com> | 2019-02-19 13:14:19 -0800 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2019-02-19 13:14:19 -0800 |
commit | 1a77bdd1d0d4a7f989d1c117c30cd6327779cd71 (patch) | |
tree | 0890271921ae5ea7cd646fb39fc0b81aaaeb2703 /view | |
parent | 1ea9002fe8d04f0b2af32fa30a6aae9a0ffcf96c (diff) | |
download | volse-hubzilla-1a77bdd1d0d4a7f989d1c117c30cd6327779cd71.tar.gz volse-hubzilla-1a77bdd1d0d4a7f989d1c117c30cd6327779cd71.tar.bz2 volse-hubzilla-1a77bdd1d0d4a7f989d1c117c30cd6327779cd71.zip |
fix ability for file storage creators (visitors) to be able to delete their own content
Diffstat (limited to 'view')
-rw-r--r-- | view/tpl/cloud_directory.tpl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/view/tpl/cloud_directory.tpl b/view/tpl/cloud_directory.tpl index 51178a9ba..90347d274 100644 --- a/view/tpl/cloud_directory.tpl +++ b/view/tpl/cloud_directory.tpl @@ -68,7 +68,7 @@ <td class="cloud-index-tool"><a href="#" title="{{$delete}}" onclick="dropItem('{{$item.fileStorageUrl}}/{{$item.attachId}}/delete/json', '#cloud-index-{{$item.attachId}},#cloud-tools-{{$item.attachId}}'); return false;"><i class="fa fa-trash-o drop-icons"></i></a></td> {{else}} - <td></td><td></td><td></td>{{if $is_admin}}<td class="cloud-index-tool"><a href="#" title="{{$admin_delete}}" onclick="dropItem('{{$item.fileStorageUrl}}/{{$item.attachId}}/delete/json', '#cloud-index-{{$item.attachId}},#cloud-tools-{{$item.attachId}}'); return false;"><i class="fa fa-trash-o drop-icons"></i></a>{{else}}<td>{{/if}}</td> + <td></td><td></td><td></td>{{if $is_admin || $item.is_creator}}<td class="cloud-index-tool"><a href="#" title="{{if $is_admin}}{{$admin_delete}}{{else}}{{$delete}}{{/if}}" onclick="dropItem('{{$item.fileStorageUrl}}/{{$item.attachId}}/delete/json', '#cloud-index-{{$item.attachId}},#cloud-tools-{{$item.attachId}}'); return false;"><i class="fa fa-trash-o drop-icons"></i></a>{{else}}<td>{{/if}}</td> {{/if}} <td>{{*{{$item.type}}*}}</td> <td class="d-none d-md-table-cell">{{$item.sizeFormatted}}</td> |