#3102 Regular users may only adopt from unsupported

This commit is contained in:
simo 2005-09-25 16:55:50 +00:00
parent 63a0a05320
commit 61a99b030e

View file

@ -310,7 +310,10 @@ if (isset($_REQUEST["do_Flag"])) {
$q.= "WHERE ID IN (" . $adopt . ") "; $q.= "WHERE ID IN (" . $adopt . ") ";
if ($atype == "User") 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 ".$field." = 0";
$q.= " AND LocationID = 2";
} }
db_query($q, $dbh); db_query($q, $dbh);
} }