Question about GitLab repository permissions

Can you ban someone from a repository on

Hey, this may be a stupid question but I can’t find the answer anywhere in the docs or in the repository itself. I’m wondering if there is a way to ban a user from interacting with a single repository on a non self-hosted GitLab instance, but I can only find documentation on how to do it from the admin area of a self-hosted GitLab instance. I would want to do this if they violate the Code of Conduct, for example. Thanks for the help and ask me if you need any more information