Insufficient Permission for Custom DocType during File Upload

I have created a Custom DocType named “Missed Attendance Request”. In there I have created two “Attach Image” fields, where the user should upload an image. But when the user tries to attach the Image, it’ll display the below error message;

"Not permitted. Insufficient Permission for Missed Attendance Request (write) "

Role Permission Manager;

Error Message;

Form View;

Field Types;

I have given all the permissions required such are create, write and read to all the roles for that DocType.

I just found out what was causing the issue. Even though we set permissions from the Role Permission Manager, once a user assigns it to another user, it gets assigned with read-only permissions (overriding the original permissions)