summaryrefslogtreecommitdiffstats
path: root/application/views/file
diff options
context:
space:
mode:
Diffstat (limited to 'application/views/file')
-rw-r--r--application/views/file/delete_form.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/application/views/file/delete_form.php b/application/views/file/delete_form.php
index 9e4562081..55827c019 100644
--- a/application/views/file/delete_form.php
+++ b/application/views/file/delete_form.php
@@ -2,7 +2,9 @@
<?php echo form_open('file/delete/'.$id); ?>
<?php if(isset($msg)) echo "<p>".$msg."</p>"; ?>
<?php if($filedata): ?>
- <p>You are about to delete the following upload:</p>
+ <?php if($can_delete) { ?>
+ <p>You are about to delete the following upload:</p>
+ <?php } ?>
<table style="margin: auto">
<tr>
<td class="title">ID</td>
@@ -25,7 +27,9 @@
<td class="text"><?php echo $filedata["mimetype"]; ?></td>
</tr>
</table>
- <input type="submit" value="Delete" name="process" />
+ <?php if($can_delete) { ?>
+ <input type="submit" value="Delete" name="process" />
+ <?php } ?>
<?php endif; ?>
</form>
</div>