diff options
-rw-r--r-- | apps/files/templates/index.php | 7 |
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"> |