summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorMichael Gapczynski <mtgap@owncloud.com>2012-09-06 20:36:25 -0400
committerMichael Gapczynski <mtgap@owncloud.com>2012-09-07 00:02:22 -0400
commit17dadd5c8a39f1903ffeec2c2c78e5e6cd145d9c (patch)
tree4b1dfb9dcb6c41b58a3507dae1d49af25c605602 /apps
parenta94b56b57baeb36a9e9bb547e213180757041576 (diff)
downloadnextcloud-server-17dadd5c8a39f1903ffeec2c2c78e5e6cd145d9c.tar.gz
nextcloud-server-17dadd5c8a39f1903ffeec2c2c78e5e6cd145d9c.zip
Don't show the delete all action if delete permission is not granted
Diffstat (limited to 'apps')
-rw-r--r--apps/files/templates/index.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/apps/files/templates/index.php b/apps/files/templates/index.php
index a874529330b..ec9e80e955e 100644
--- a/apps/files/templates/index.php
+++ b/apps/files/templates/index.php
@@ -54,7 +54,12 @@
</span>
</th>
<th id="headerSize"><?php echo $l->t( 'Size' ); ?></th>
- <th id="headerDate"><span id="modified"><?php echo $l->t( 'Modified' ); ?></span><span class="selectedActions"><a href="" class="delete"><?php echo $l->t('Delete')?> <img class="svg" alt="<?php echo $l->t('Delete')?>" src="<?php echo OCP\image_path("core", "actions/delete.svg"); ?>" /></a></span></th>
+ <th id="headerDate">
+ <span id="modified"><?php echo $l->t( 'Modified' ); ?></span>
+ <?php if ($_['permissions'] & OCP\Share::PERMISSION_DELETE): ?>
+ <span class="selectedActions"><a href="" class="delete"><?php echo $l->t('Delete')?> <img class="svg" alt="<?php echo $l->t('Delete')?>" src="<?php echo OCP\image_path("core", "actions/delete.svg"); ?>" /></a></span>
+ <?php endif; ?>
+ </th>
</tr>
</thead>
<tbody id="fileList">