From 94a805321016db8646834d5fb26198ce738d459f Mon Sep 17 00:00:00 2001 From: Callan Barrett Date: Thu, 29 May 2008 17:23:40 +0800 Subject: Disable user package deletion Users can no longer delete packages if they own them, only TUs and devs Signed-off-by: Callan Barrett --- web/html/packages.php | 3 --- 1 file changed, 3 deletions(-) (limited to 'web/html') diff --git a/web/html/packages.php b/web/html/packages.php index 0394c6e..80ddf20 100644 --- a/web/html/packages.php +++ b/web/html/packages.php @@ -218,9 +218,6 @@ if ($_POST['action'] == "do_Flag" || isset($_POST['do_Flag'])) { # if ($atype == "Trusted User" || $atype == "Developer") { $result = db_query($q, $dbh); - } else { - $q.= "AND $field IN (0, " . uid_from_sid($_COOKIE["AURSID"]) . ")"; - $result = db_query($q, $dbh); } if ($result != Null && mysql_num_rows($result) > 0) { while ($row = mysql_fetch_assoc($result)) { -- cgit v1.2.3-54-g00ecf