summaryrefslogtreecommitdiffstats
path: root/web/html/packages.php
diff options
context:
space:
mode:
Diffstat (limited to 'web/html/packages.php')
-rw-r--r--web/html/packages.php3
1 files changed, 3 insertions, 0 deletions
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);
}