worker: apply permissions for users
There are no commits yet
Push commits to the source branch or add previously merged commits to review them.
Created by: asdine
This adds a function that applies user permissions to a list of repo. This function will be called by the worker to apply the permissions. It doesn't deal with the unrestricted flag, only with explicit permissions. It reuses the SetRepoPermissions and SetRepoPendingPermissions methods which already deal with most of the complexity.
Related to https://github.com/sourcegraph/sourcegraph/issues/36450
Added a unit test
Push commits to the source branch or add previously merged commits to review them.