diff options
author | root <root@adnab.me> | 2014-01-31 19:08:03 +0100 |
---|---|---|
committer | root <root@adnab.me> | 2014-01-31 19:08:03 +0100 |
commit | 77048675abf5fad43e8b5371c35e1c86b3be59c2 (patch) | |
tree | 2d77c78988a4a354af3653481785aeea00429e5e /lib/file/delete.php | |
parent | 2a274c011d177f5ad1e863301b8b88c560a3829d (diff) | |
download | Bits-adnab.me-site.tar.gz Bits-adnab.me-site.zip |
Privilege changesadnab.me-site
Diffstat (limited to 'lib/file/delete.php')
-rw-r--r-- | lib/file/delete.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/file/delete.php b/lib/file/delete.php index 1a65058..296b560 100644 --- a/lib/file/delete.php +++ b/lib/file/delete.php @@ -9,7 +9,7 @@ $id = intval($args[2]); $info = mysql_fetch_assoc(sql("SELECT * FROM files WHERE id = $id")); -if ($info["owner"] == $user["id"]) { +if ($info["owner"] == $user["id"] || $user['priv'] >= $priv_admin) { token_validate("Do you really want to delete this file ?", "file"); if (has_mini($info["extension"])) unlink($savedir . $id . "-min." . $info["extension"]); unlink($savedir . $id . "." . $info["extension"]); |