summaryrefslogtreecommitdiffstats
path: root/web/html/packages.php
diff options
context:
space:
mode:
authorsimo <simo>2005-09-25 18:55:50 +0200
committersimo <simo>2005-09-25 18:55:50 +0200
commit61a99b030ee149898517924f090c7a0f9b6f67a4 (patch)
tree9fcda6f8db2fcc27e53afed2bf131dde312bb61f /web/html/packages.php
parent63a0a0532033b79f541f59ac1152b747f5760d75 (diff)
downloadaur-61a99b030ee149898517924f090c7a0f9b6f67a4.tar.gz
aur-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 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);
}