6543 71979d9663
Automatically remove Watches, Assignments, etc if user loses access due to being removed as collaborator or from a team (#10997)
* remove a user from being assigned to any issue/PR if (s)he is removed as a collaborator

* fix gender specific comment

* do not remove users that still have access to the repo if they are a member of a team that can access the repo

* add context to errors

* updates

* incorporate review fixes

* Update models/repo_collaboration.go

Co-Authored-By: 6543 <6543@obermui.de>

* Update models/repo_collaboration.go

Co-Authored-By: 6543 <6543@obermui.de>

* Fix Rebase Relict

* Fix & Impruve

* use xorm builder

* all in one session

* generalize reconsiderIssueAssignees

* Only Unwatch if have no access anymore

* prepare for reuse

* Same things if remove User from Team

* fix lint

* let mysql take time to react

* add description

* CI.restart()

* CI.restart()

Co-authored-by: Lanre Adelowo <yo@lanre.wtf>
Co-authored-by: techknowlogick <matti@mdranta.net>
Co-authored-by: Lauris BH <lauris@nix.lv>
2020-04-07 22:52:01 +01:00
..
2020-03-22 11:12:55 -04:00
2020-04-05 07:20:50 +01:00
2020-02-27 20:10:27 -03:00
2019-08-23 12:40:29 -04:00
2020-02-27 20:10:27 -03:00
2020-04-01 01:14:46 -03:00
2020-04-05 07:20:50 +01:00
2019-12-15 16:57:34 -05:00
2020-04-05 07:20:50 +01:00
2020-03-22 11:12:55 -04:00
2020-04-05 07:20:50 +01:00
2020-03-27 16:12:39 +02:00
2020-03-22 11:12:55 -04:00
2020-01-24 14:00:29 -05:00
2020-04-05 07:20:50 +01:00
2020-03-22 11:12:55 -04:00
2020-03-02 00:05:44 +02:00
2019-08-23 12:40:29 -04:00
2020-04-05 07:20:50 +01:00
2020-01-13 18:33:46 +01:00
2019-06-12 15:41:28 -04:00
2018-10-20 18:19:21 -04:00
2020-03-28 15:09:55 +02:00