Ignore user permissions only if the user is owner/creator of the document

I want to ignore user permissions if the user is owner/creator of the document. Is it something that I can achieve out of the box using settings on frappe. Or do I need to custom implement to achieve it?

Backgroud: For my usecase, the user can be assigned(given user permission for defined period) to other departments for temporary basis. If there are any documents created when he is temporarily working for other department, he should see those documents when he is removed from the department.

Thanks for looking at this topic.