Access Permissions Not Working as Expected

I have a doctype connected to a web form. However, there is an issue with user access permissions.

When the user with the email rehanshaikh639@gmail.com tries to visit the following link:
http://xyz.localhost:8000/blocks/list
they receive the error message:
“User rehanshaikh639@gmail.com does not have doctype access via role permission for document Block.”

Additionally, editing the document is also not possible at:
http://xyz.localhost:8000/blocks/PTB1
with the same error message:
“User rehanshaikh639@gmail.com does not have doctype access via role permission for document Block.”

The problem is that despite these access issues, the user is able to successfully create a new record in that doctype using the web form at:
http://xyz.localhost:8000/blocks/new