From 61a99b030ee149898517924f090c7a0f9b6f67a4 Mon Sep 17 00:00:00 2001 From: simo Date: Sun, 25 Sep 2005 16:55:50 +0000 Subject: #3102 Regular users may only adopt from unsupported --- web/html/packages.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'web/html') diff --git a/web/html/packages.php b/web/html/packages.php index 28eae28f..c02347f5 100644 --- a/web/html/packages.php +++ b/web/html/packages.php @@ -310,7 +310,10 @@ if (isset($_REQUEST["do_Flag"])) { $q.= "WHERE ID IN (" . $adopt . ") "; if ($atype == "User") { + # Regular users may only adopt orphan packages from unsupported + # FIXME: We assume that LocationID for unsupported is "2" $q.= "AND ".$field." = 0"; + $q.= " AND LocationID = 2"; } db_query($q, $dbh); } -- cgit v1.2.3-24-g4f1b