Prevent project team from being truncated too early during project destruction
There are two issues with truncating the project team early:
-
Projects::UnlinkForkService
may not close merge requests properly since permissions may be revoked early. -
If an error is encountered during flushing of caches, then the user will lose all privileges, possibly causing an issue on deletion on retry.