How to enroll a user in the specific course

Hi everyone,
I have disabled self learning in my courses and when I am enrolling a user manually and checking it shows an error that User lms@gmail.com does not have access to this document

image

these are the rights provided to the user