Fix project public_or_visible_to_user deploy token bug
What does this MR do and why?
While working with the project public_or_visible_to_user
method I noticed that the deploy token logic simply returns all accessible projects, it does not "chain" based on the current collection.
This MR fixes that and improves the test coverage.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.