mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
#3102 Regular users may only adopt from unsupported
This commit is contained in:
parent
63a0a05320
commit
61a99b030e
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue