summaryrefslogtreecommitdiffstats
path: root/application/controllers/file.php
diff options
context:
space:
mode:
Diffstat (limited to 'application/controllers/file.php')
-rw-r--r--application/controllers/file.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/application/controllers/file.php b/application/controllers/file.php
index f6a37eaf8..cb10e9e2f 100644
--- a/application/controllers/file.php
+++ b/application/controllers/file.php
@@ -200,6 +200,8 @@ class File extends CI_Controller {
}
}
+ $this->data["can_delete"] = $this->data["filedata"]["user"] == $this->muser->get_userid();
+
$this->load->view($this->var->view_dir.'/header', $this->data);
$this->load->view($this->var->view_dir.'/delete_form', $this->data);
$this->load->view($this->var->view_dir.'/footer', $this->data);