summaryrefslogtreecommitdiffstats
path: root/web/lib
diff options
context:
space:
mode:
authorLukas Fleischer <lfleischer@archlinux.org>2017-08-01 06:59:49 +0200
committerLukas Fleischer <lfleischer@archlinux.org>2017-08-01 07:02:44 +0200
commite06773add6bbecdf9ce797412ff0125780ba635d (patch)
treed6ac775dcaa8a8659483ff2d7b22afafb94f33d4 /web/lib
parentc5302d3a33028f483cc2e01225226d4ae047dd4a (diff)
downloadaur-e06773add6bbecdf9ce797412ff0125780ba635d.tar.gz
aur-e06773add6bbecdf9ce797412ff0125780ba635d.tar.xz
Unset PackagerUID before deleting an account
When removing an account, remove the user from all last packager fields before deletion to make sure that no package bases are deleted, even if propagation constraints are missing. Fixes FS#53956. Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
Diffstat (limited to 'web/lib')
-rw-r--r--web/lib/acctfuncs.inc.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/lib/acctfuncs.inc.php b/web/lib/acctfuncs.inc.php
index e45d735b..bdcaaa82 100644
--- a/web/lib/acctfuncs.inc.php
+++ b/web/lib/acctfuncs.inc.php
@@ -924,7 +924,7 @@ function user_delete($id) {
$fields_set_null = array(
array("PackageBases", "SubmitterUID"),
array("PackageBases", "MaintainerUID"),
- array("PackageBases", "SubmitterUID"),
+ array("PackageBases", "PackagerUID"),
array("PackageComments", "UsersID"),
array("PackageComments", "DelUsersID"),
array("PackageRequests", "UsersID"),