Can GitLab restrict some one to read one directory in a git repo branch?

Part of code is to be protected with only a few people can read.
How to implement it in GitLab?