summaryrefslogtreecommitdiffstats
path: root/web/html/packages.php
diff options
context:
space:
mode:
authorsimo <simo>2005-09-25 16:55:50 +0000
committersimo <simo>2005-09-25 16:55:50 +0000
commit61a99b030ee149898517924f090c7a0f9b6f67a4 (patch)
tree9fcda6f8db2fcc27e53afed2bf131dde312bb61f /web/html/packages.php
parent63a0a0532033b79f541f59ac1152b747f5760d75 (diff)
downloadaurweb-61a99b030ee149898517924f090c7a0f9b6f67a4.tar.xz
#3102 Regular users may only adopt from unsupported
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 28eae28..c02347f 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);
}