diff options
author | simo <simo> | 2005-09-25 16:55:50 +0000 |
---|---|---|
committer | simo <simo> | 2005-09-25 16:55:50 +0000 |
commit | 61a99b030ee149898517924f090c7a0f9b6f67a4 (patch) | |
tree | 9fcda6f8db2fcc27e53afed2bf131dde312bb61f | |
parent | 63a0a0532033b79f541f59ac1152b747f5760d75 (diff) |
#3102 Regular users may only adopt from unsupported
-rw-r--r-- | web/html/packages.php | 3 |
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); } |