diff options
author | Florian Pritz <bluewind@xinu.at> | 2012-04-13 22:03:36 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2012-04-13 22:03:36 +0200 |
commit | 2cc4778de8ed465a0c870f120ec06510b6828edd (patch) | |
tree | 23e658f260cdf975450f6524ac506836a60c1d28 /application/controllers | |
parent | 189e232fc65ab356eef9997a81a9755d17c41b37 (diff) |
Hide delete button if user doesn't own the id
It won't work anyway.
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'application/controllers')
-rw-r--r-- | application/controllers/file.php | 2 |
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); |