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/delfld.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/delfld.php')
-rw-r--r-- | lib/file/delfld.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/file/delfld.php b/lib/file/delfld.php index c1cacf0..9a2bf1f 100644 --- a/lib/file/delfld.php +++ b/lib/file/delfld.php @@ -7,7 +7,7 @@ $fld = mysql_fetch_assoc(sql( "SELECT id, name, comment, public, owner ". "FROM folders WHERE id = $fldid" )); -assert_error($fld && $fld['owner'] == $user['id'], +assert_error($fld && ($fld['owner'] == $user['id'] || $user['priv'] >= $priv_admin), "This folder does not exist, or you are not allowed to edit it."); token_validate("Do you really want to delete this folder ?", "folder-file-$fldid"); |