Disable user package deletion

Users can no longer delete packages if they own them, only TUs and devs

Signed-off-by: Callan Barrett <wizzomafizzo@gmail.com>
This commit is contained in:
Callan Barrett 2008-05-29 17:23:40 +08:00
parent a49ee80aa2
commit 94a8053210
2 changed files with 4 additions and 6 deletions

View file

@ -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)) {