summaryrefslogtreecommitdiffstats
path: root/application/models
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2012-04-13 22:03:36 +0200
committerFlorian Pritz <bluewind@xinu.at>2012-04-13 22:03:36 +0200
commit2cc4778de8ed465a0c870f120ec06510b6828edd (patch)
tree23e658f260cdf975450f6524ac506836a60c1d28 /application/models
parent189e232fc65ab356eef9997a81a9755d17c41b37 (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/models')
-rw-r--r--application/models/file_mod.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/application/models/file_mod.php b/application/models/file_mod.php
index 48248fe7d..26d384fa9 100644
--- a/application/models/file_mod.php
+++ b/application/models/file_mod.php
@@ -55,7 +55,7 @@ class File_mod extends CI_Model {
function get_filedata($id)
{
$sql = '
- SELECT hash, filename, mimetype, date
+ SELECT hash, filename, mimetype, date, user
FROM `files`
WHERE `id` = ?
LIMIT 1';