]> source.dussan.org Git - nextcloud-server.git/commitdiff
Don't show the delete all action if delete permission is not granted
authorMichael Gapczynski <mtgap@owncloud.com>
Fri, 7 Sep 2012 00:36:25 +0000 (20:36 -0400)
committerMichael Gapczynski <mtgap@owncloud.com>
Fri, 7 Sep 2012 04:02:22 +0000 (00:02 -0400)
apps/files/templates/index.php

index a874529330b3ed720bed954b8a57e70f487f5c95..ec9e80e955eba1d52881765101de1d515541ddf1 100644 (file)
                                </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">