Commit 0613a637 authored by Lukas Fleischer's avatar Lukas Fleischer
Browse files

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 03c6304e

 (Rework permission
handling, 2014-07-15). Fixes FS#41426.
Signed-off-by: default avatarLukas Fleischer <archlinux@cryptocrack.de>
parent 237a4570
......@@ -380,7 +380,7 @@ if ($uid):
* notification list.
*/
if ($was_orphan) {
pkgbase_notify(account_from_sid($_COOKIE["AURSID"]), array($base_id), true);
pkgbase_notify(array($base_id), true);
}
end_atomic_commit();
......
......@@ -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."));
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment