]> source.dussan.org Git - gitea.git/commit
Cleanup protected branches when deleting users & teams (#19158) (#19174)
authorNorwin <noerw@users.noreply.github.com>
Wed, 23 Mar 2022 05:56:53 +0000 (06:56 +0100)
committerGitHub <noreply@github.com>
Wed, 23 Mar 2022 05:56:53 +0000 (13:56 +0800)
commit743553f3e9ecc20f37914e1007ef6c9083a96ad9
tree3450f2ad28af23ba28ca1006816a41e02524cd7c
parenta3ccbb5b7f53d13ce171004d5e4fa15e5f14430d
Cleanup protected branches when deleting users & teams (#19158) (#19174)

* Clean up protected_branches when deleting user

fixes #19094

* Clean up protected_branches when deleting teams

* fix issue

Co-authored-by: Lauris BH <lauris@nix.lv>
Co-authored-by: Lauris BH <lauris@nix.lv>
Co-authored-by: zeripath <art27@cantab.net>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
models/org_team.go
models/user.go
modules/util/slice.go [new file with mode: 0644]