summaryrefslogtreecommitdiffstats
path: root/web/lib
diff options
context:
space:
mode:
authorLukas Fleischer <archlinux@cryptocrack.de>2014-08-06 00:08:46 +0200
committerLukas Fleischer <archlinux@cryptocrack.de>2014-08-06 00:09:05 +0200
commit0613a637b39420deb0b34c8831aa2c31fa63ee7f (patch)
tree73c2f1f10d0a3242535473138a5aaba0a7f0eca6 /web/lib
parent237a4570e2a2bbfd39520886f56c5240e6ed4bec (diff)
downloadaurweb-0613a637b39420deb0b34c8831aa2c31fa63ee7f.tar.xz
Fix notification handling on submission and adoption
Automatically add users to the notification list when adopting a package. This used to work bug was broken by 03c6304 (Rework permission handling, 2014-07-15). Fixes FS#41426. Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
Diffstat (limited to 'web/lib')
-rw-r--r--web/lib/pkgbasefuncs.inc.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/lib/pkgbasefuncs.inc.php b/web/lib/pkgbasefuncs.inc.php
index 946209b..1ac0b47 100644
--- a/web/lib/pkgbasefuncs.inc.php
+++ b/web/lib/pkgbasefuncs.inc.php
@@ -617,7 +617,7 @@ function pkgbase_adopt ($base_ids, $action=true, $via) {
$dbh->exec($q);
if ($action) {
- pkgbase_notify(account_from_sid($_COOKIE["AURSID"]), $base_ids);
+ pkgbase_notify($base_ids);
return array(true, __("The selected packages have been adopted."));
} else {
return array(true, __("The selected packages have been disowned."));