mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
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>
This commit is contained in:
parent
237a4570e2
commit
0613a637b3
2 changed files with 2 additions and 2 deletions
|
@ -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."));
|
||||
|
|
Loading…
Add table
Reference in a new issue